diff options
author | Dominik Stadler <centic@apache.org> | 2023-10-27 10:08:09 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2023-10-27 10:08:09 +0000 |
commit | 4cff9053755f8ee19d03b379e839e82829d49f16 (patch) | |
tree | 143572e9e0ca997590e97355807ea6060ccbf6de /poi-ooxml | |
parent | 56eb1ccff6f271b63a2d91ff406e7d45ecb6c512 (diff) | |
download | poi-4cff9053755f8ee19d03b379e839e82829d49f16.tar.gz poi-4cff9053755f8ee19d03b379e839e82829d49f16.zip |
Bug 66425: Avoid exceptions found via poi-fuzz
Fix one expected exception-text which is different
on newer Java versions
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63142
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913385 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml')
-rw-r--r-- | poi-ooxml/src/main/java/org/apache/poi/xdgf/usermodel/section/geometry/Ellipse.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xdgf/usermodel/section/geometry/Ellipse.java b/poi-ooxml/src/main/java/org/apache/poi/xdgf/usermodel/section/geometry/Ellipse.java index 703a24b499..ce63d9fc11 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xdgf/usermodel/section/geometry/Ellipse.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xdgf/usermodel/section/geometry/Ellipse.java @@ -59,6 +59,11 @@ public class Ellipse implements GeometryRow { for (CellType cell : row.getCellArray()) { String cellName = cell.getN(); + if (cellName == null) { + throw new POIXMLException("Invalid cell '" + cellName + + "' in Ellipse row"); + } + switch (cellName) { case "X": x = XDGFCell.parseDoubleValue(cell); |