tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vicky Chawda (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TIKA-2752) Tika-App RTFParser crashes with NullPointerException
Date Fri, 12 Oct 2018 07:07:00 GMT
Vicky Chawda created TIKA-2752:
----------------------------------

             Summary: Tika-App RTFParser crashes with NullPointerException
                 Key: TIKA-2752
                 URL: https://issues.apache.org/jira/browse/TIKA-2752
             Project: Tika
          Issue Type: Bug
          Components: parser
    Affects Versions: 1.13
            Reporter: Vicky Chawda
             Fix For: 1.14


The RTFParser seems to crash on RTF files containing pictures. The attached file produces
the following stacktrace:

java.lang.NullPointerException
at org.apache.tika.mime.MimeTypesFactory.create(MimeTypesFactory.java:90)
at org.apache.tika.mime.MimeTypesFactory.create(MimeTypesFactory.java:174)
at org.apache.tika.mime.MimeTypes.getDefaultMimeTypes(MimeTypes.java:577)
at org.apache.tika.config.TikaConfig.getDefaultMimeTypes(TikaConfig.java:69)
at org.apache.tika.config.TikaConfig.<init>(TikaConfig.java:218)
at org.apache.tika.config.TikaConfig.getDefaultConfig(TikaConfig.java:341)
at org.apache.tika.parser.rtf.RTFEmbObjHandler.getConfig(RTFEmbObjHandler.java:263)
at org.apache.tika.parser.rtf.RTFEmbObjHandler.getExtension(RTFEmbObjHandler.java:242)
at org.apache.tika.parser.rtf.RTFEmbObjHandler.extractObj(RTFEmbObjHandler.java:219)
at org.apache.tika.parser.rtf.RTFEmbObjHandler.handleCompletedObject(RTFEmbObjHandler.java:198)
at org.apache.tika.parser.rtf.TextExtractor.processGroupEnd(TextExtractor.java:1357)
at org.apache.tika.parser.rtf.TextExtractor.extract(TextExtractor.java:456)
at org.apache.tika.parser.rtf.TextExtractor.extract(TextExtractor.java:439)
at org.apache.tika.parser.rtf.RTFParser.parse(RTFParser.java:87)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message