You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Bernhard Geisberger (Jira)" <ji...@apache.org> on 2019/08/27 09:39:00 UTC

[jira] [Created] (COMPRESS-492) NullPointerException for 7zip files without file headers

Bernhard Geisberger created COMPRESS-492:
--------------------------------------------

             Summary: NullPointerException for 7zip files without file headers
                 Key: COMPRESS-492
                 URL: https://issues.apache.org/jira/browse/COMPRESS-492
             Project: Commons Compress
          Issue Type: Bug
          Components: Archivers
    Affects Versions: 1.18
            Reporter: Bernhard Geisberger
         Attachments: sample.7z

When loading a .7z file with correct headers and without files info headers using the SevenZFile class, a NullPointerException is thrown when calling getEntries or getNextEntry, because the archive.files member of SevenZFile is null. Ideally, a subclass of IOException should be thrown in this case.

I attached an example file we encountered in our file processing pipeline, which causes the exception.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)