Skip to content

Commit

Permalink
Bug 66425: Avoid exceptions found via poi-fuzz
Browse files Browse the repository at this point in the history
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
  • Loading branch information
centic9 committed Jan 11, 2025
1 parent 57afb34 commit 76617e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ public EllipticalArcTo(RowType row) {
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);
Expand Down
Binary file not shown.
Binary file modified test-data/spreadsheet/stress.xls
Binary file not shown.

0 comments on commit 76617e9

Please sign in to comment.