mirror of
https://github.com/actions/runner.git
synced 2025-12-10 12:36:23 +00:00
Add null check
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user