You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2022/09/10 14:20:57 UTC
[Bug 66257] New: NullPointerException in XSSFReader$SheetIterator.next()
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: dev@poi.apache.org
Reporter: tilman@snafu.de
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 66257] NullPointerException in XSSFReader$SheetIterator.next()
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66257
PJ Fanning <fa...@yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 66257] NullPointerException in XSSFReader$SheetIterator.next()
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66257
--- Comment #1 from PJ Fanning <fa...@yahoo.com> ---
add r1903972
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org