[ 
https://issues.apache.org/jira/browse/PDFBOX-1965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14290712#comment-14290712
 ] 

Andreas Lehmkühler commented on PDFBOX-1965:
--------------------------------------------

i've fixed the NPE, BUT I've just realized that the whole on demand parser 
doesn't work. NonSequentialPDFParser#initialParse doesn't load the whole pdf 
and right after that NonSequentialPDFParser#parse resolves the missing objects. 
I'll have a look and that stuff in the context of PDFBOX-2600.

> NPE in NonSequentialPDFParser when parseMinimal property is set to true
> -----------------------------------------------------------------------
>
>                 Key: PDFBOX-1965
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1965
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 1.8.4, 1.8.5, 2.0.0
>            Reporter: Stefan Magnus Landrø
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.8.9, 2.0.0
>
>         Attachments: example1.pdf
>
>
> When the parseMinimal system property is set to true, indirect objects are 
> not followed when the PDF is parsed. That causes the following NPE:
> java.lang.NullPointerException
>       at 
> org.apache.pdfbox.pdfparser.NonSequentialPDFParser.parseDictObjects(NonSequentialPDFParser.java:1082)
>       at 
> org.apache.pdfbox.pdfparser.NonSequentialPDFParser.getPage(NonSequentialPDFParser.java:928)
>       at 
> org.apache.pdfbox.pdfparser.NonSequentialPDFParser.parse(NonSequentialPDFParser.java:749)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to