[ArchiveTools] Add null logic

This commit is contained in:
Matt Nadareski
2017-01-30 14:07:12 -08:00
parent 5636ac3440
commit 55904fbca5

View File

@@ -381,7 +381,12 @@ namespace SabreTools.Helper.Tools
st = null;
}
st.Position = 0;
// If we have a non-null stream, we seek to the beginning
if (st != null)
{
st.Position = 0;
}
return st;
}