[ 
https://issues.apache.org/jira/browse/PDFBOX-817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Lehmkühler resolved PDFBOX-817.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.7.0
         Assignee: Andreas Lehmkühler

An alternate colorspace is used instead of rethrowing the exception. I changed 
the behaviour in revision 1305032.
                
> IllegalArgumentException not catched or declared while creating ICC profile
> ---------------------------------------------------------------------------
>
>                 Key: PDFBOX-817
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-817
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.3.1
>            Reporter: Timo Boehme
>            Assignee: Andreas Lehmkühler
>            Priority: Minor
>             Fix For: 1.7.0
>
>         Attachments: pdfbox_issue817.patch
>
>
> In class 
> org.apache.pdfbox.pdmodel.graphics.color.PDICCBased.createColorSpace() the 
> call to ICC_Profile.getInstance( profile ) might return an 
> IllegalArgumentException. This exception is neither documented nor catched in 
> this method (RuntimeException). Since method documentation states that an 
> IOException is thrown if color space could not be created I would suggest 
> catching IllegalArgumentException and wrap it in an IOException. I will add a 
> patch to this issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to