mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-04 05:25:00 +00:00
Null reference when doing lzip.close #284
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?
Originally created by @claunia on GitHub (Mar 17, 2018).
Originally assigned to: @adamhathcock on GitHub.
Well, self descriptive, with 0.19.2, both on compression and decompression modes.
@adamhathcock commented on GitHub (Mar 18, 2018):
Need a little more detail. Probably a code sample. The tests so exercise the Dispose method like here: https://github.com/adamhathcock/sharpcompress/blob/master/tests/SharpCompress.Test/Tar/TarReaderTests.cs#L65
@claunia commented on GitHub (Mar 18, 2018):
The null reference happens exactly in https://github.com/adamhathcock/sharpcompress/blob/master/src/SharpCompress/Compressors/LZMA/LZipStream.cs#L92 and well, it happens because rawStream is only initialized in compress mode, while in decompress it stays null.
@adamhathcock commented on GitHub (May 5, 2018):
Fixed