Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-4034

NPE thrown invoking PageIterator.enqueueKids

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.8
    • Fix Version/s: None
    • Component/s: PDModel
    • Labels:
      None

      Description

      A NPE is thrown inside java.util.ArrayDeque class invoking from PageIterator.enqueueKids when merging documents:

      java.lang.NullPointerException
      	at java.util.ArrayDeque.addLast(ArrayDeque.java:242)
      	at java.util.ArrayDeque.add(ArrayDeque.java:408)
      	at org.apache.pdfbox.pdmodel.PDPageTree$PageIterator.enqueueKids(PDPageTree.java:174)
      	at org.apache.pdfbox.pdmodel.PDPageTree$PageIterator.enqueueKids(PDPageTree.java:169)
      	at org.apache.pdfbox.pdmodel.PDPageTree$PageIterator.<init>(PDPageTree.java:159)
      	at org.apache.pdfbox.pdmodel.PDPageTree$PageIterator.<init>(PDPageTree.java:153)
      	at org.apache.pdfbox.pdmodel.PDPageTree.iterator(PDPageTree.java:123)
      	at org.apache.pdfbox.multipdf.PDFMergerUtility.appendDocument(PDFMergerUtility.java:585)
      	at 
      org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:266)
      ...
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Giorgy Jorge Spinsanti
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: