Seva Alekseyev created TIKA-2139: ------------------------------------ Summary: NullPointerException on a valid PDF after loading Key: TIKA-2139 URL: https://issues.apache.org/jira/browse/TIKA-2139 Project: Tika Issue Type: Bug Components: parser Affects Versions: 1.13 Environment: Windows 7 x64, JVM 1.8.0_101 Reporter: Seva Alekseyev
On the attached PDF document, which opens fine in Acrobar Reader, the Tika parser throws the following error: 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) -- This message was sent by Atlassian JIRA (v6.3.4#6332)