Fix ArgumentOutOfRangeException in analyzing the build graph

This commit is contained in:
Nate McMaster 2018-04-13 09:33:28 -07:00
parent 5b55598c44
commit 3fa5a7cd79
No known key found for this signature in database
GPG Key ID: A778D9601BD78810
1 changed files with 4 additions and 1 deletions

View File

@ -130,7 +130,10 @@ namespace RepoTasks
message: $"Undefined external dependency on {dependency.Key}/{dependency.Value.Version}");
}
externalVersions[idx].IsReferenced = true;
if (idx >= 0)
{
externalVersions[idx].IsReferenced = true;
}
continue;
}