Bug 66425: Avoid exceptions found via poi-fuzz

Prevent a possible NullPointerException

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=70467

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919562 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2024-07-28 11:02:18 +00:00
parent c05eebf415
commit 0559accac4
3 changed files with 2 additions and 2 deletions

View File

@ -48,9 +48,9 @@ public class MoveTo implements GeometryRow {
for (CellType cell : row.getCellArray()) {
String cellName = cell.getN();
if (cellName.equals("X")) {
if ("X".equals(cellName)) {
x = XDGFCell.parseDoubleValue(cell);
} else if (cellName.equals("Y")) {
} else if ("Y".equals(cellName)) {
y = XDGFCell.parseDoubleValue(cell);
} else {
throw new POIXMLException("Invalid cell '" + cellName

Binary file not shown.