https://bz.apache.org/bugzilla/show_bug.cgi?id=58718

--- Comment #6 from Tim Allison <[email protected]> ---
Looks like we can go even more minimal, just use these two files:
                "008495.ppt",
                "008558.ppt"


The first one causes: 
java.lang.ArrayIndexOutOfBoundsException: 110
    at org.apache.poi.util.LittleEndian.getInt(LittleEndian.java:161)
    at
org.apache.poi.hslf.record.TxMasterStyleAtom.init(TxMasterStyleAtom.java:157)
    at
org.apache.poi.hslf.record.TxMasterStyleAtom.<init>(TxMasterStyleAtom.java:70)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    at org.apache.poi.hslf.record.Record.createRecordForType(Record.java:181)
    at org.apache.poi.hslf.record.Record.findChildRecords(Record.java:128)
    at org.apache.poi.hslf.record.MainMaster.<init>(MainMaster.java:64)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    at org.apache.poi.hslf.record.Record.createRecordForType(Record.java:181)
    at org.apache.poi.hslf.record.Record.buildRecordAtOffset(Record.java:103)
    at
org.apache.poi.hslf.usermodel.HSLFSlideShowImpl.read(HSLFSlideShowImpl.java:294)
    at
org.apache.poi.hslf.usermodel.HSLFSlideShowImpl.buildRecords(HSLFSlideShowImpl.java:275)
    at
org.apache.poi.hslf.usermodel.HSLFSlideShowImpl.<init>(HSLFSlideShowImpl.java:179)
    at
org.apache.poi.hslf.extractor.PowerPointExtractor.<init>(PowerPointExtractor.java:117)
    at
org.apache.poi.hslf.extractor.PowerPointExtractor.<init>(PowerPointExtractor.java:98)
    at
org.apache.poi.hslf.extractor.PowerPointExtractor.<init>(PowerPointExtractor.java

And this exception leaves a residue which causes the "Master styles not
initialized" exception in 008558.ppt.  However, if you just parse 008558.ppt by
itself, no exception.

-- 
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]

Reply via email to