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=42481>.
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=42481

           Summary: Exception from Slide.getMasterSheet() on a seemingly
                    valid PPT file
           Product: POI
           Version: 3.0-dev
          Platform: Other
               URL: http://thefdp.org/alterman_security.ppt
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSLF
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


The file at above URL shows two slide masters in PowerPoint, but 
SlideShow.getSlideMasters() only returns one. This causes 
Slide.getMasterSheet() to throw a RuntimeException on the first slide.

Even if the root cause (getSlideMasters()) is not fixed, I think it would be 
better for getMasterSheet() to simply return null if it can't find the master, 
instead of throwing exceptions. As it is, you are forced to try/catch a 
RuntimeException if you want to recover, but catching a RuntimeException is too 
broad, it may mask other exceptions that may come from the API.

-- 
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]
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/

Reply via email to