Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.3
-
None
Description
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)
The line that triggers this is this new line
awtColorSpace.fromRGB(new float[3]);
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.