[
https://issues.apache.org/jira/browse/ODFTOOLKIT-401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14652968#comment-14652968
]
Damjan Jovanovic commented on ODFTOOLKIT-401:
---------------------------------------------
Great, thank you :-). BTW as a regression test, you can use any encrypted file,
provided the patch from ODFTOOLKIT-402 is not applied.
> NullPointerException from typo hides all ZIP exceptions
> -------------------------------------------------------
>
> Key: ODFTOOLKIT-401
> URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-401
> Project: ODF Toolkit
> Issue Type: Bug
> Components: odfdom
> Reporter: Damjan Jovanovic
> Assignee: Svante Schubert
> Fix For: 0.6.1-incubating
>
> Attachments: ziphelper-npe.patch
>
>
> In SVN trunk, org.odftoolkit.odfdom.pkg.ZipHelpder.entriesToMap() has an
> exception handler that calls System.getProperty("Java.version") which will
> return null as it's supposed to be "java.version" (lowercase), and then
> compares it to "1.5.0" with equals(), and calling equals() on a null
> reproducibly generates an NPE.
> This was already reported as one of the problems in ODFTOOLKIT-353 and still
> is not fixed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)