mirror of
https://github.com/actions/runner.git
synced 2025-12-10 20:36:49 +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
|
// Add this file to the FileTable in executionContext if it hasn't been added already
|
||||||
// we use > since fileID is 1 indexed
|
// we use > since fileID is 1 indexed
|
||||||
if (fileId > executionContext.FileTable.Count)
|
if (fileId > executionContext.FileTable?.Count)
|
||||||
{
|
{
|
||||||
executionContext.FileTable.Add(fileRelativePath);
|
executionContext.FileTable.Add(fileRelativePath);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user