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

Timo Boehme updated PDFBOX-817:
-------------------------------

    Attachment: pdfbox_issue817.patch

patch wrapping IllegalArgumentException in IOException and removing not needed 
COSInteger from import

> 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.0
>            Reporter: Timo Boehme
>            Priority: Minor
>         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.
-
You can reply to this email to add a comment to the issue online.

Reply via email to