mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[ArchiveTools] Fix more stream stuff
This commit is contained in:
@@ -225,9 +225,9 @@ namespace SabreTools.Helper.Tools
|
||||
Stream ms = ExtractStream(input, entryName, out realEntry, logger);
|
||||
|
||||
// If we got out a null or empty entry, then we don't have a stream
|
||||
if (String.IsNullOrEmpty(realEntry))
|
||||
if (String.IsNullOrEmpty(realEntry) || ms == null)
|
||||
{
|
||||
ms.Dispose();
|
||||
ms?.Dispose();
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user