get CompressionType faild with attached 7z file #302

Closed
opened 2026-01-29 22:09:44 +00:00 by claunia · 0 comments
Owner

Originally created by @wkaven on GitHub (Jun 2, 2018).

foreach (var entry in ArchiveFactory.Open(@"./dir.7z").Entries)
{
Console.WriteLine(entry.CompressionType);
}

thrown: 'System.NullReferenceException' in SharpCompress.Common.SevenZip.SevenZipFilePart.GetCompression()

temp.zip

Originally created by @wkaven on GitHub (Jun 2, 2018). foreach (var entry in ArchiveFactory.Open(@"./dir.7z").Entries) { Console.WriteLine(entry.CompressionType); } thrown: 'System.NullReferenceException' in SharpCompress.Common.SevenZip.SevenZipFilePart.GetCompression() [temp.zip](https://github.com/adamhathcock/sharpcompress/files/2064822/temp.zip)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#302