mirror of https://github.com/apache/poi.git
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:
parent
c05eebf415
commit
0559accac4
|
@ -48,9 +48,9 @@ public class MoveTo implements GeometryRow {
|
||||||
for (CellType cell : row.getCellArray()) {
|
for (CellType cell : row.getCellArray()) {
|
||||||
String cellName = cell.getN();
|
String cellName = cell.getN();
|
||||||
|
|
||||||
if (cellName.equals("X")) {
|
if ("X".equals(cellName)) {
|
||||||
x = XDGFCell.parseDoubleValue(cell);
|
x = XDGFCell.parseDoubleValue(cell);
|
||||||
} else if (cellName.equals("Y")) {
|
} else if ("Y".equals(cellName)) {
|
||||||
y = XDGFCell.parseDoubleValue(cell);
|
y = XDGFCell.parseDoubleValue(cell);
|
||||||
} else {
|
} else {
|
||||||
throw new POIXMLException("Invalid cell '" + cellName
|
throw new POIXMLException("Invalid cell '" + cellName
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue