Prevent NullPointerException
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64943
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@
1915004 13f79535-47bb-0310-9956-
ffa450edef68
}
case FIELD_DROP_DOWN: {
Range fieldContent = field.firstSubrange(parentRange);
+ if (fieldContent == null) {
+ throw new IllegalStateException("Cannot read field content from field " + field + " and range " + parentRange);
+ }
+
CharacterRun cr = fieldContent.getCharacterRun(fieldContent
.numCharacterRuns() - 1);
String[] values = cr.getDropDownListValues();
"clusterfuzz-testcase-minimized-POIHWPFFuzzer-4947285593948160.doc",
"clusterfuzz-testcase-minimized-POIHWPFFuzzer-5440721166139392.doc",
"clusterfuzz-testcase-minimized-POIHWPFFuzzer-5050208641482752.doc",
- "clusterfuzz-testcase-minimized-POIHWPFFuzzer-4892412469968896.doc"
+ "clusterfuzz-testcase-minimized-POIHWPFFuzzer-4892412469968896.doc",
+ "clusterfuzz-testcase-minimized-POIHWPFFuzzer-6610789829836800.doc"
);
public static Stream<Arguments> files() {
"clusterfuzz-testcase-minimized-POIHWPFFuzzer-4947285593948160.doc",
"clusterfuzz-testcase-minimized-POIHWPFFuzzer-5440721166139392.doc",
"clusterfuzz-testcase-minimized-POIHWPFFuzzer-5050208641482752.doc",
- "clusterfuzz-testcase-minimized-POIHWPFFuzzer-4892412469968896.doc"
+ "clusterfuzz-testcase-minimized-POIHWPFFuzzer-4892412469968896.doc",
+ "clusterfuzz-testcase-minimized-POIHWPFFuzzer-6610789829836800.doc"
);
/**