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 47068] New: Null pointer exception in getClientRecords
Date Tue, 21 Apr 2009 23:10:45 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47068

           Summary: Null pointer exception in getClientRecords
           Product: POI
           Version: 3.5-dev
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSLF
        AssignedTo: dev@poi.apache.org
        ReportedBy: sean.bridges@gmail.com


This is with 3.5 beta 4

In getClientRecords(), the code,

EscherRecord r = Shape.getEscherChild(getSpContainer(),
EscherClientDataRecord.RECORD_ID);
            //ddf can return EscherContainerRecord with
recordId=EscherClientDataRecord.RECORD_ID
            //convert in to EscherClientDataRecord on the fly
            if(!(r instanceof EscherClientDataRecord)){

getEscherChild(...) may return null, in which,

!(r instanceof EscherClientDataRecord)

is true, and 

byte[] data = r.serialize();

throws a NullPointerException

java.lang.NullPointerException
    at
org.apache.poi.hslf.model.SimpleShape.getClientRecords(SimpleShape.java:322)
    at
org.apache.poi.hslf.model.SimpleShape.getClientDataRecord(SimpleShape.java:307)
    at
org.apache.poi.hslf.model.TextShape.getPlaceholderAtom(TextShape.java:547)
    at org.apache.poi.hslf.model.Sheet.getPlaceholder(Sheet.java:408)
    at
org.apache.poi.hslf.model.HeadersFooters.isVisible(HeadersFooters.java:244)
    at
org.apache.poi.hslf.model.HeadersFooters.isHeaderVisible(HeadersFooters.java:148)
    at
org.apache.poi.hslf.extractor.PowerPointExtractor.getText(PowerPointExtractor.java:173)
    at
org.apache.poi.hslf.extractor.PowerPointExtractor.getText(PowerPointExtractor.java:144)

-- 
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message