commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Bodewig (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (COMPRESS-276) NullPointerException in ZipArchiveOutputStream with invalid entries
Date Sun, 13 Apr 2014 08:34:15 GMT

     [ https://issues.apache.org/jira/browse/COMPRESS-276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Stefan Bodewig resolved COMPRESS-276.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.9

improved state verification for the archive streams with svn revision 1586935

> NullPointerException in ZipArchiveOutputStream with invalid entries
> -------------------------------------------------------------------
>
>                 Key: COMPRESS-276
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-276
>             Project: Commons Compress
>          Issue Type: Bug
>          Components: Archivers
>    Affects Versions: 1.8
>         Environment: Mac OS 10.9, Java 6, 7
>            Reporter: Cyrille Artho
>             Fix For: 1.9
>
>         Attachments: Report1.java
>
>
> Writing raw data seems to cause problems in multiple ways, because an internal field
is not set. Is this a wrong API usage?
>     java.io.ByteArrayOutputStream var0 = new java.io.ByteArrayOutputStream();
>     org.apache.commons.compress.archivers.jar.JarArchiveOutputStream var1 = new org.apache.commons.compress.archivers.jar.JarArchiveOutputStream((java.io.OutputStream)var0);
>     var1.write(25843);
> Other tests (see attachment) are very similar and cause the same problem. They can probably
be ignored because the first test is the shortest one.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message