[
https://issues.apache.org/jira/browse/PDFBOX-3610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15709632#comment-15709632
]
ASF subversion and git services commented on PDFBOX-3610:
---------------------------------------------------------
Commit 1772109 from [~tilman] in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1772109 ]
PDFBOX-3610: catch ArrayIndexOutOfBoundsException
> ArrayIndexOutOfBoundsException in PDICCBased.loadICCProfile()
> -------------------------------------------------------------
>
> Key: PDFBOX-3610
> URL: https://issues.apache.org/jira/browse/PDFBOX-3610
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.3
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Fix For: 2.0.4, 2.1.0
>
> Attachments: gs-bugzilla687042.pdf
>
>
> {code}
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
> at java.awt.color.ICC_ColorSpace.fromRGB(Unknown Source)
> at
> org.apache.pdfbox.pdmodel.graphics.color.PDICCBased.loadICCProfile(PDICCBased.java:145)
> at
> org.apache.pdfbox.pdmodel.graphics.color.PDICCBased.<init>(PDICCBased.java:89)
> {code}
> The line that triggers this is this new line
> {code}
> awtColorSpace.fromRGB(new float[3]);
> {code}
> According to the javadoc ArrayIndexOutOfBoundsException happens only if the
> input array is smaller than 3.... I'll just add
> ArrayIndexOutOfBoundsException to the catch list. Probably yet another JDK
> bug.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]