Tilman Hausherr created PDFBOX-3610:
---------------------------------------
Summary: 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
{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]