You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Adam Nichols (JIRA)" <ji...@apache.org> on 2010/12/27 22:22:48 UTC

[jira] Resolved: (PDFBOX-797) NPE in PDPageNode

     [ https://issues.apache.org/jira/browse/PDFBOX-797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Nichols resolved PDFBOX-797.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5.0
         Assignee: Adam Nichols

This NPE has been patched in revision 1053194.  The patch submitted to PDFBOX-578 was what resolved the NPE.  I modified it slightly to also check to ensure the "page" object is not null as well.

> NPE in PDPageNode
> -----------------
>
>                 Key: PDFBOX-797
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-797
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Reinhard Schwab
>            Assignee: Adam Nichols
>             Fix For: 1.5.0
>
>         Attachments: 4218.pdf
>
>
> i get a nullpointer exception when parsing a pdf with tika.
> http://www.awsg.at/portal/media/4218.pdf
> java.lang.NullPointerException
>     at org.apache.pdfbox.pdmodel.PDPageNode.getCount(PDPageNode.java:109)
>     at
> org.apache.pdfbox.pdmodel.PDDocument.getNumberOfPages(PDDocument.java:943)
>     at
> org.apache.tika.parser.pdf.PDFParser.extractMetadata(PDFParser.java:105)
>     at org.apache.tika.parser.pdf.PDFParser.parse(PDFParser.java:86)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.