You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/01/07 22:46:35 UTC

[jira] [Commented] (TIKA-1412) NPE in OpenDocumentParser

    [ https://issues.apache.org/jira/browse/TIKA-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14268303#comment-14268303 ] 

Hudson commented on TIKA-1412:
------------------------------

SUCCESS: Integrated in tika-trunk-jdk1.7 #418 (See [https://builds.apache.org/job/tika-trunk-jdk1.7/418/])
TIKA-1412: Fixed test issue on Windows build (dmeikle: http://svn.apache.org/viewvc/tika/trunk/?view=rev&rev=1650163)
* /tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/odf/ODFParserTest.java


> 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)