[ https://issues.apache.org/jira/browse/TIKA-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Seva Alekseyev updated TIKA-2117: --------------------------------- Attachment: TEST_THOR.PDF > NullPointerException on PDF (fixed in PDFBox) > --------------------------------------------- > > Key: TIKA-2117 > URL: https://issues.apache.org/jira/browse/TIKA-2117 > Project: Tika > Issue Type: Bug > Components: parser > Affects Versions: 1.13 > Environment: Windows 7 x64, JVM 1.8.0_101 > Reporter: Seva Alekseyev > Attachments: TEST_THOR.PDF > > > Tika PDF parser emits a NullPointerException on the following PDF file: > https://dl.dropboxusercontent.com/u/92341073/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) -- This message was sent by Atlassian JIRA (v6.3.4#6332)