You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Nick Burch (JIRA)" <ji...@apache.org> on 2014/09/08 21:13:29 UTC
[jira] [Resolved] (TIKA-1412) NPE in OpenDocumentParser
[ 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)