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

NPE in NonSequentialPDFParser when parseMinimal property is set to true

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.4, 1.8.5, 2.0.0
    • Fix Version/s: 1.8.9, 2.0.0
    • Component/s: Parsing
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: