mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
[PR #854] return Stream.Null when 7z entry has no stream #1289
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/adamhathcock/sharpcompress/pull/854
State: closed
Merged: Yes
bug: 7z file extraction fails when the archive contains empty file
I'm using the following code to extract a 7z file:
But it fails when the archive file (
data) contains an empy file.The same
GetCompressedStreammethod returnsStream.Null, I think this method should also returnStream.Nullinstead throwing an exception.It would be good to put an empy file to the tests\TestArchives\Original folder and to all the test files, to cover this case in the tests, but I don't know how to create them.