Thomas B. created PDFBOX-5072:
---------------------------------

             Summary: java.lang.IndexOutOfBoundsException
                 Key: PDFBOX-5072
                 URL: https://issues.apache.org/jira/browse/PDFBOX-5072
             Project: PDFBox
          Issue Type: Bug
          Components: Utilities
    Affects Versions: 2.0.22
            Reporter: Thomas B.


I'm having a similar issue that have been fixed in PDFBOX-4969.

In my case, the IndexOutOfBoundsException occurs inside PDNameTreeNode, and not 
inside PDNumberTreeNode.
{code:java}
java.lang.IndexOutOfBoundsException: Index: 81, Size: 81 at 
java.util.ArrayList.rangeCheck(ArrayList.java:653) at 
java.util.ArrayList.get(ArrayList.java:429) at 
org.apache.pdfbox.cos.COSArray.getObject(COSArray.java:188) at 
org.apache.pdfbox.pdmodel.common.PDNameTreeNode.getNames(PDNameTreeNode.java:272)
 at 
org.apache.pdfbox.multipdf.PDFMergerUtility.getIDTreeAsMap(PDFMergerUtility.java:1036)
 at 
org.apache.pdfbox.multipdf.PDFMergerUtility.getIDTreeAsMap(PDFMergerUtility.java:1051)
 at 
org.apache.pdfbox.multipdf.PDFMergerUtility.mergeIDTree(PDFMergerUtility.java:1008)
 at 
org.apache.pdfbox.multipdf.PDFMergerUtility.appendDocument(PDFMergerUtility.java:877)
 at 
org.apache.pdfbox.multipdf.PDFMergerUtility.legacyMergeDocuments(PDFMergerUtility.java:459)
 at 
org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:346)
{code}
Unfortunately, I can't share the document that reproduce the issue.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to