Bug 66425: Avoid exceptions found via poi-fuzz

Prevent a NullPointerException

Fixes https://issues.oss-fuzz.com/issues/42537550

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923060 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2025-01-11 09:24:14 +00:00
parent 57afb34a18
commit 76617e9793
3 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,10 @@ public class EllipticalArcTo implements GeometryRow {
for (CellType cell : row.getCellArray()) {
String cellName = cell.getN();
if (cellName == null) {
throw new POIXMLException("Missing cellName in EllipticalArcTo row");
}
switch (cellName) {
case "X":
x = XDGFCell.parseDoubleValue(cell);

Binary file not shown.