[
https://issues.apache.org/jira/browse/COMPRESS-492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16916993#comment-16916993
]
Stefan Bodewig commented on COMPRESS-492:
-----------------------------------------
The 7z CLI on Linux simply returns an empty list of files for your archive,
which would be in line with [~Tai] 's suggestion.
Can I add your sample archive to the collection of unit test archives and
publish it as part of our code base (using the Apache License 2.0, of course)?
> 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
> Priority: Minor
> Labels: 7zip, nullpointerexception
> Fix For: 1.20
>
> 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)