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/42538163

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923058 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
centic9 committed Jan 11, 2025
1 parent f873888 commit edcbd87
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public Rectangle2D getAnchor(){
}

CTPoint2D off = xfrm.getOff();
if (off == null) {
if (off == null || off.getX() == null || off.getY() == null) {
throw new IllegalArgumentException("Could not retrieve Off from the XML object");
}
double x = Units.toPoints(POIXMLUnits.parseLength(off.xgetX()));
Expand Down
Binary file not shown.
Binary file modified test-data/spreadsheet/stress.xls
Binary file not shown.

0 comments on commit edcbd87

Please sign in to comment.