https://issues.apache.org/bugzilla/show_bug.cgi?id=48544
Summary: Example code XLSX2CSV fails when shared string table
is missing
Product: POI
Version: 3.6
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=24844)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=24844)
Patch to ReadOnlySharedStringTable class constructor
I contributed code as Bug 47757 that converts an XLSX workbook to CSV format.
The class is here:
http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/xssf/eventusermodel/XLSX2CSV.java
I recently found a bug in an embedded class, ReadonlySharedStringsTable, that
is triggered by a workbook that contains only numbers and therefore has no
shared strings table. I've attached a small patch that revises the constructor
to check that the ArrayList of package parts is not empty before grabbing the
first item. Hope this helps.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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]