[SkipperRule] Fix null check

This commit is contained in:
Matt Nadareski
2017-03-01 21:36:48 -08:00
parent 0d43dd159f
commit 090ade800e

View File

@@ -126,7 +126,7 @@ namespace SabreTools.Helper.Skippers
{
byte[] buffer = new byte[4];
int pos = 0;
while (input.Position < (EndOffset != null ? EndOffset : input.Length)
while (input.Position < (EndOffset ?? input.Length)
&& input.Position < input.Length)
{
byte b = br.ReadByte();