Add null check

This commit is contained in:
Ethan Chiu
2020-07-08 14:51:07 -04:00
parent af9202bd8d
commit 635baa5295

View File

@@ -75,7 +75,7 @@ namespace GitHub.Runner.Worker
// Add this file to the FileTable in executionContext if it hasn't been added already
// we use > since fileID is 1 indexed
if (fileId > executionContext.FileTable.Count)
if (fileId > executionContext.FileTable?.Count)
{
executionContext.FileTable.Add(fileRelativePath);
}