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

NPE in PageIterator.enqueueKids

    XMLWordPrintableJSON

Details

    Description

      Exception in thread "main" java.lang.NullPointerException
      	at java.util.ArrayDeque.addLast(ArrayDeque.java:244)
      	at java.util.ArrayDeque.add(ArrayDeque.java:418)
      	at org.apache.pdfbox.pdmodel.PDPageTree$PageIterator.enqueueKids(PDPageTree.java:178)
      	at org.apache.pdfbox.pdmodel.PDPageTree$PageIterator.enqueueKids(PDPageTree.java:173)
      	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.text.PDFTextStripper.processPages(PDFTextStripper.java:282)
      

      This worked in 2.0.7. There are about 200 occurences of this exception in the tests by Tim.

      Attachments

        1. 23EGDHXSBBYQLKYOKGZUOVYVNE675PRD.pdf
          1024 kB
          Tilman Hausherr
        2. 6MNJMPJVZMZRSTE5A4ENHP3F5SIOG27T.pdf
          456 kB
          Tilman Hausherr

        Issue Links

          Activity

            People

              lehmi Andreas Lehmkühler
              tilman Tilman Hausherr
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: