Prevent null exception from clrTags.Result

This commit is contained in:
lucas 2023-11-21 23:13:49 -03:00 committed by GitHub
parent d923703a3a
commit 59789c6e41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -326,7 +326,7 @@ namespace UpdateAssemblyInfo
var gitPath = GetGitPath();
if (clrTags.RunCommandAndGetOutput(gitPath, "describe --long --tags", workingDirectory))
{
if (clrTags.Result.Contains("RC"))
if (clrTags.Result != null && clrTags.Result.Contains("RC"))
{
return true;
}