Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2117

NullPointerException on PDF (fixed in PDFBox)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.13
    • Fix Version/s: 2.0, 1.15
    • Component/s: parser
    • Labels:
      None
    • Environment:

      Windows 7 x64, JVM 1.8.0_101

      Description

      Tika PDF parser emits a NullPointerException on the attached PDF file "TEST_THOR.PDF". The file displays as expected in Acrobat.

      The call stack goes:
      java.lang.NullPointerException
      at org.apache.pdfbox.pdmodel.interactive.form.PDFieldFactory.findFieldType(PDFieldFactory.java:113)
      at org.apache.pdfbox.pdmodel.interactive.form.PDFieldFactory.createField(PDFieldFactory.java:48)
      at org.apache.pdfbox.pdmodel.interactive.form.PDField.fromDictionary(PDField.java:77)
      at org.apache.pdfbox.pdmodel.interactive.form.PDNonTerminalField.getChildren(PDNonTerminalField.java:136)
      at org.apache.tika.parser.pdf.PDF2XHTML.processAcroField(PDF2XHTML.java:698)
      at org.apache.tika.parser.pdf.PDF2XHTML.extractAcroForm(PDF2XHTML.java:680)
      at org.apache.tika.parser.pdf.PDF2XHTML.endDocument(PDF2XHTML.java:243)
      at org.apache.pdfbox.text.PDFTextStripper.writeText(PDFTextStripper.java:267)
      at org.apache.tika.parser.pdf.PDF2XHTML.process(PDF2XHTML.java:160)
      at org.apache.tika.parser.pdf.PDFParser.parse(PDFParser.java:144)
      at gov.nih.niaid.fscanner.Extract.ExtractContents(Extract.java:62)
      at gov.nih.niaid.temp.Main.main(Main.java:69)

        Attachments

        1. TEST_THOR.PDF
          244 kB
          Seva Alekseyev

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sevaa Seva Alekseyev
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: