poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23672] New: - SSTRecord.getString(int) throws NullPointerException
Date Wed, 08 Oct 2003 12:04:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23672>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23672

SSTRecord.getString(int) throws NullPointerException

           Summary: SSTRecord.getString(int) throws NullPointerException
           Product: POI
           Version: 2.0-pre3
          Platform: All
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: HSSF
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: morten@kikobu.com


I have an excel document that results in the following exception being thrown:

Exception in thread "main" java.lang.NullPointerException
        at org.apache.poi.hssf.record.SSTRecord.getString(SSTRecord.java:313)
        at DoTest$TestHandler.processRecord(DoTest.java:26)
        at org.apache.poi.hssf.eventusermodel.HSSFRequest.processRecord(HSSFRequ
est.java:173)
        at org.apache.poi.hssf.eventusermodel.HSSFEventFactory.genericProcessEve
nts(HSSFEventFactory.java:208)
        at org.apache.poi.hssf.eventusermodel.HSSFEventFactory.processEvents(HSS
FEventFactory.java:139)
        at org.apache.poi.hssf.eventusermodel.HSSFEventFactory.processWorkbookEv
ents(HSSFEventFactory.java:104)
        at DoTest.processFile(DoTest.java:49)
        at DoTest.main(DoTest.java:64)

This happens for CVS HEAD, 2.0-pre3 and 1.5.1 (in 1.5.1 the NullPointer is in
SSTRecord.java line 309 though). The excel document contains english and
taiwanese texts. I cannot attach the document here due to NDA issues.

If I do a search/replace on a simple string that occurs in the sheet, and 
saves it, the saved version works fine. But either way, the 
SSTRecord.getString(int) should not ever be able to result in a NPE, right?

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-dev-help@jakarta.apache.org


Mime
View raw message