mirror of
https://github.com/apache/poi.git
synced 2026-02-27 12:30:08 +08:00
Avoid NPE with malformed Visio diagram
Fixes https://issues.oss-fuzz.com/issues/477312394
This commit is contained in:
parent
c92c533d7a
commit
5338b17a8f
@ -47,6 +47,10 @@ public class RelLineTo implements GeometryRow {
|
||||
for (CellType cell : row.getCellArray()) {
|
||||
String cellName = cell.getN();
|
||||
|
||||
if (cellName == null) {
|
||||
throw new IllegalStateException("Cannot create a ReLineTo object without a cell-name indicating 'X' or 'Y' direction");
|
||||
}
|
||||
|
||||
if (cellName.equals("X")) {
|
||||
x = XDGFCell.parseDoubleValue(cell);
|
||||
} else if (cellName.equals("Y")) {
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user