Avoid NPE with malformed Visio diagram

Fixes https://issues.oss-fuzz.com/issues/477312394
This commit is contained in:
Dominik Stadler 2026-02-14 16:53:30 +01:00
parent c92c533d7a
commit 5338b17a8f
3 changed files with 4 additions and 0 deletions

View File

@ -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.