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

IllegalArgumentException: root cannot be null with truncated file

    Details

      Description

      java.lang.IllegalArgumentException: root cannot be null
          org.apache.pdfbox.pdmodel.PDPageTree.<init>(PDPageTree.java:75)
          org.apache.pdfbox.pdmodel.PDDocumentCatalog.getPages(PDDocumentCatalog.java:129)
          org.apache.pdfbox.pdmodel.PDDocument.getPages(PDDocument.java:1388)
          org.apache.pdfbox.debugger.ui.DocumentEntry.getPageCount(DocumentEntry.java:42)
          org.apache.pdfbox.debugger.ui.PDFTreeModel.getChildCount(PDFTreeModel.java:195)
          java.desktop/java.beans.PropertyChangeSupport.fire(Unknown Source)
          java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
          java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
          org.apache.pdfbox.debugger.PDFDebugger.initTree(PDFDebugger.java:1288)
          org.apache.pdfbox.debugger.PDFDebugger.readPDFFile(PDFDebugger.java:1235)
          org.apache.pdfbox.debugger.PDFDebugger.readPDFFile(PDFDebugger.java:1218)
          org.apache.pdfbox.debugger.PDFDebugger.main(PDFDebugger.java:1209)
          org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:85)
      

      This worked in 2.0.6, but no longer in 2.0.7. It happens since [ https://svn.apache.org/r1795705 ] of PDFBOX-3798.

        Attachments

        1. 023505.pdf
          256 kB
          Tilman Hausherr

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: