[ https://issues.apache.org/jira/browse/TIKA-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14143043#comment-14143043 ]
Hong-Thai Nguyen commented on TIKA-1412: ---------------------------------------- Add a test at r1626706 > NPE in OpenDocumentParser > ------------------------- > > Key: TIKA-1412 > URL: https://issues.apache.org/jira/browse/TIKA-1412 > Project: Tika > Issue Type: Bug > Components: parser > Affects Versions: 1.6 > Reporter: Andrzej Bialecki > Fix For: 1.7 > > Attachments: TIKA-1412.diff > > > There's a missing "else" in OpenDocumentParser when it constructs a > ZipInputStream from the InputStream, which results in NPE when the > InputStream is an instance of TikaInputStream but has neither openContainer > nor file: > {code} > ... > Caused by: java.lang.NullPointerException > at > org.apache.tika.parser.odf.OpenDocumentParser.parse(OpenDocumentParser.java:161) > ~[tika-parsers-1.6.jar:1.6] > at > org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:244) > ~[tika-core-1.6.jar:1.6] > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)