[ArchiveTools] Fix more stream stuff

This commit is contained in:
Matt Nadareski
2017-01-30 16:10:14 -08:00
parent 55904fbca5
commit 80d09f1b30

View File

@@ -225,9 +225,9 @@ namespace SabreTools.Helper.Tools
Stream ms = ExtractStream(input, entryName, out realEntry, logger); 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 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; return null;
} }