You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2018/03/23 17:19:00 UTC

[jira] [Created] (PDFBOX-4164) NPE in PDFDebugger when expanding page subtree

Tilman Hausherr created PDFBOX-4164:
---------------------------------------

             Summary: NPE in PDFDebugger when expanding page subtree
                 Key: PDFBOX-4164
                 URL: https://issues.apache.org/jira/browse/PDFBOX-4164
             Project: PDFBox
          Issue Type: Bug
          Components: Utilities
    Affects Versions: 2.0.8, 2.0.9
            Reporter: Tilman Hausherr
            Assignee: Tilman Hausherr
             Fix For: 2.0.10, 3.0.0 PDFBox


When clicking on "+" to show a page from the file from 
https://github.com/mozilla/pdf.js/issues/9597 :
{code}
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)
{code}
The cause is a broken PDF with a /Subtype that is not a name. I'll fix that and do the same for /Type.




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org