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

NullPointerException on a valid Word file

    XMLWordPrintableJSON

    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

      On the attached Word file, which loads and displays fine in Word, the Tika parser throws the following error:

      java.lang.NullPointerException
      at org.apache.poi.xwpf.usermodel.XWPFRun.text(XWPFRun.java:1082)
      at org.apache.poi.xwpf.usermodel.XWPFRun.toString(XWPFRun.java:1050)
      at org.apache.poi.xwpf.usermodel.XWPFParagraph.getText(XWPFParagraph.java:222)
      at org.apache.poi.xwpf.usermodel.XWPFTable.<init>(XWPFTable.java:115)
      at org.apache.poi.xwpf.usermodel.XWPFDocument.onDocumentRead(XWPFDocument.java:180)
      at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:160)
      at org.apache.poi.xwpf.usermodel.XWPFDocument.<init>(XWPFDocument.java:124)
      at org.apache.poi.xwpf.extractor.XWPFWordExtractor.<init>(XWPFWordExtractor.java:58)
      at org.apache.poi.extractor.ExtractorFactory.createExtractor(ExtractorFactory.java:237)
      at org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOXMLExtractorFactory.java:86)
      at org.apache.tika.parser.microsoft.ooxml.OOXMLParser.parse(OOXMLParser.java:87)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: