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

NPE in NonSequentialPDFParser when parseMinimal property is set to true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.4, 1.8.5, 2.0.0
    • 1.8.9, 2.0.0
    • Parsing
    • None

    Description

      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)

      Attachments

        1. example1.pdf
          56 kB
          Stefan Magnus Landrø

        Activity

          People

            lehmi Andreas Lehmkühler
            landro Stefan Magnus Landrø
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: