[
https://issues.apache.org/jira/browse/TIKA-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nick Burch resolved TIKA-1412.
------------------------------
Resolution: Fixed
Fix Version/s: 1.7
Thanks, patch applied in r1623466.
> 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)