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

NPE in PDFDebugger when expanding page subtree

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.8, 2.0.9
    • 2.0.10, 3.0.0 PDFBox
    • Utilities
    • None

    Description

      When clicking on "+" to show a page from the file from
      https://github.com/mozilla/pdf.js/issues/9597 :

      java.lang.NullPointerException: null
          org.apache.pdfbox.debugger.ui.PDFTreeCellRenderer.toTreePostfix(PDFTreeCellRenderer.java:214)
          org.apache.pdfbox.debugger.ui.PDFTreeCellRenderer.toTreeObject(PDFTreeCellRenderer.java:121)
          org.apache.pdfbox.debugger.ui.PDFTreeCellRenderer.getTreeCellRendererComponent(PDFTreeCellRenderer.java:77)
          java.security.AccessController.doPrivileged(Native Method)
          java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
          java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
          java.security.AccessController.doPrivileged(Native Method)
          java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
      

      The cause is a broken PDF with a /Subtype that is not a name. I'll fix that and do the same for /Type.

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: