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

NullPointerException in SecurityHandler.addDictionaryAndSubDictionary(SecurityHandler.java:185)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6.0
    • 1.7.0
    • Parsing
    • None

    Description

      NullPointerException in SecurityHandler.addDictionaryAndSubDictionary(SecurityHandler.java:185)

      The attached pdf causes a null pointer in my environment possible security encryption issue?

      java.io.IOException:
      at org.apache.tika.parser.ParsingReader.read(ParsingReader.java:260)
      ...
      Caused by: org.apache.tika.exception.TikaException: Unexpected RuntimeException from org.apache.tika.parser.pdf.PDFParser@335ac93d
      at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:244)
      at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
      at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
      at org.apache.tika.parser.ParsingReader$ParsingTask.run(ParsingReader.java:221)
      ... 1 more
      Caused by: java.lang.NullPointerException
      at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.addDictionaryAndSubDictionary(SecurityHandler.java:185)

      Note I incorrectly logged this in TIKA as https://issues.apache.org/jira/browse/TIKA-848 so could that one be resolved when this one is? thanks.

      Attachments

        1. customer_dispute_form.pdf
          712 kB
          Tom Field

        Activity

          People

            tboehme Timo Boehme
            tombonator Tom Field
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: