https://bz.apache.org/bugzilla/show_bug.cgi?id=66257
Bug ID: 66257
Summary: NullPointerException in
XSSFReader$SheetIterator.next()
Product: POI
Version: 5.2.2-FINAL
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
"commoncrawl/CC-MAIN-2021-31/75/c0/75c0f36adec322c1460ffac4406c5df4826c14c16eb16f7057511b5bc0c66397",1,False,"617","java.lang.NullPointerException
at
org.apache.poi.xssf.eventusermodel.XSSFReader$SheetIterator.next(XSSFReader.java:352)
at
org.apache.tika.parser.microsoft.ooxml.XSSFExcelExtractorDecorator.buildXHTML(XSSFExcelExtractorDecorator.java:155)
from what I understand, the problem is here:
PackagePart sheetPkg = sheetMap.get(sheetId);
return sheetPkg.getInputStream();
the result of get() isn't null checked. You could throw a POIXMLException
instead.
I don't have the file, but maybe Tim has it.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]