[
https://issues.apache.org/jira/browse/PDFBOX-2550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14241391#comment-14241391
]
ASF subversion and git services commented on PDFBOX-2550:
---------------------------------------------------------
Commit 1644483 from [~tilman] in branch 'pdfbox/branches/1.8'
[ https://svn.apache.org/r1644483 ]
PDFBOX-2550: allow indirect object and avoid ClassCastException in getColour()
> ClassCastException in PDAnnotation.getColour
> --------------------------------------------
>
> Key: PDFBOX-2550
> URL: https://issues.apache.org/jira/browse/PDFBOX-2550
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Affects Versions: 1.8.8, 2.0.0
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Labels: Annotations
> Fix For: 1.8.9, 2.0.0
>
> Attachments: 176622.pdf
>
>
> {code}
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSObject cannot be cast
> to org.apache.pdfbox.cos.COSArray
> at
> org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation.getColour(PDAnnotation.java:644)
> at
> org.apache.pdfbox.preflight.annotation.AnnotationValidator.checkColors(AnnotationValidator.java:134)
> {code}
> The cause is this:
> {code}
> /C 19 0 R
> {code}
> The current code doesn't expect it to be an indirect object.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)