Skip to content

Commit

Permalink
Avoid potential NRE (#29128)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmat authored and marek-safar committed Nov 21, 2022
1 parent ac8b0e8 commit 356783e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BuiltInTools/dotnet-watch/HotReloadDotNetWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ private void ConfigureExecutable(DotNetWatchContext context, ProcessSpec process
}

var rootVariableName = EnvironmentVariableNames.TryGetDotNetRootVariableName(
project.RuntimeIdentifier,
project.DefaultAppHostRuntimeIdentifier,
project.RuntimeIdentifier ?? "",
project.DefaultAppHostRuntimeIdentifier ?? "",
project.TargetFrameworkVersion);

if (rootVariableName != null && string.IsNullOrEmpty(Environment.GetEnvironmentVariable(rootVariableName)))
Expand Down

0 comments on commit 356783e

Please sign in to comment.