tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Seva Alekseyev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TIKA-2152) NullPointerException on a valid Word file
Date Tue, 01 Nov 2016 18:20:58 GMT
Seva Alekseyev created TIKA-2152:
------------------------------------

             Summary: NullPointerException on a valid Word file
                 Key: TIKA-2152
                 URL: https://issues.apache.org/jira/browse/TIKA-2152
             Project: Tika
          Issue Type: Bug
          Components: parser
    Affects Versions: 1.13
         Environment: Windows 7 x64, JVM 1.8.0_101
            Reporter: Seva Alekseyev
         Attachments: A5346.docx

On the attached Word document, which opens fine in Word, the Tika parser throws the following
error:

java.lang.NullPointerException
	at org.apache.poi.xwpf.usermodel.XWPFStyles.getStyle(XWPFStyles.java:198)
	at org.apache.tika.parser.microsoft.ooxml.XWPFWordExtractorDecorator.extractParagraph(XWPFWordExtractorDecorator.java:149)
	at org.apache.tika.parser.microsoft.ooxml.XWPFWordExtractorDecorator.extractIBodyText(XWPFWordExtractorDecorator.java:107)
	at org.apache.tika.parser.microsoft.ooxml.XWPFWordExtractorDecorator.extractTable(XWPFWordExtractorDecorator.java:362)
	at org.apache.tika.parser.microsoft.ooxml.XWPFWordExtractorDecorator.extractHeaderText(XWPFWordExtractorDecorator.java:414)
	at org.apache.tika.parser.microsoft.ooxml.XWPFWordExtractorDecorator.extractHeaders(XWPFWordExtractorDecorator.java:404)
	at org.apache.tika.parser.microsoft.ooxml.XWPFWordExtractorDecorator.buildXHTML(XWPFWordExtractorDecorator.java:89)
	at org.apache.tika.parser.microsoft.ooxml.AbstractOOXMLExtractor.getXHTML(AbstractOOXMLExtractor.java:109)
	at org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOXMLExtractorFactory.java:112)
	at org.apache.tika.parser.microsoft.ooxml.OOXMLParser.parse(OOXMLParser.java:87)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message