DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42570>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42570

           Summary: NullPointerException in HSSFWorkbook.convertLabelRecords
           Product: POI
           Version: 3.0
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Trying to read the attached spreadsheet results in a NullPointerExcepion,
apparently because convertLabelRecords passes a null string to the constructor
of UnicodeString (see stack trace below).

The problem seems to be related to a chart that relies on broken references to
other spreadsheets.

For my application's purposes, I've created a patch that replaces the null
string with an empty one.  This seems to work in the specific case, but doesn't
seem like a good solution in general.

java.lang.NullPointerException
        at 
org.apache.poi.hssf.record.UnicodeString.setString(UnicodeString.java:350)
        at 
org.apache.poi.hssf.record.UnicodeString.<init>(UnicodeString.java:104)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.convertLabelRecords(HSSFWorkbook.java:304)
        at 
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:213)
        at 
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:153)
        at tersus.poi.tests.ReadExcelFile.main(ReadExcelFile.java:32)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to