Skip to content

Commit

Permalink
Check for null Path (#4391)
Browse files Browse the repository at this point in the history
  • Loading branch information
lewing authored Apr 14, 2023
1 parent f9226d7 commit 1541fc3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,10 @@ private string GetTestHostPath(string runtimeConfigDevPath, string depsFilePath,
}
}

testHostPath = Path.Combine(testhostPackage.Path, testHostPath);
if (testhostPackage.Path is not null)
{
testHostPath = Path.Combine(testhostPackage.Path, testHostPath);
}
_hostPackageVersion = testhostPackage.Version;
IsVersionCheckRequired = !_hostPackageVersion.StartsWith("15.0.0");
EqtTrace.Verbose("DotnetTestHostmanager: Relative path of testhost.dll with respect to package folder is {0}", testHostPath);
Expand Down

0 comments on commit 1541fc3

Please sign in to comment.