Hi all. :-)

A few documents in our corpus are throwing an unexpected IllegalStateException when reading slides via SlideShow.getSlides().

The exception is coming from this line in the constructor for org.apache.poi.hslf.model.TextRun:

    if(pLenRemain < 0) {
        throw new IllegalStateException("Paragraph style ran out...");
    }

The interesting thing is that if I comment out these lines, I get the rest of the slides with no apparent problem... it seems to fix every situation where the error occurs and doesn't seem to deprive me of any text content.

So at the moment I think I'm going to leave this commented out, but I'm not sure if that would be the right thing to do in the POI codebase itself. :-)

Daniel

--
Daniel Noll

Nuix Australia Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, Australia
Phone: (02) 9280 0699
Fax:   (02) 9212 6902

This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/

Reply via email to