Bug 66425: Avoid exceptions found via poi-fuzz

Prevent a NullPointerException

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=69450

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918985 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2024-07-07 06:40:31 +00:00
parent 164c239a52
commit 397cee3a12
3 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,9 @@ public class NURBSTo implements GeometryRow {
for (CellType cell : row.getCellArray()) { for (CellType cell : row.getCellArray()) {
String cellName = cell.getN(); String cellName = cell.getN();
if (cellName == null) {
throw new POIXMLException("Invalid null-cell in NURBS row");
}
switch (cellName) { switch (cellName) {
case "X": case "X":

Binary file not shown.