Skip to content

Commit

Permalink
Avoid NRE in SharedViewCompilerProvider.GetCompiler() (#16252)
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Alhayek <mike@crestapps.com>
  • Loading branch information
hishamco and MikeAlhayek authored Jun 5, 2024
1 parent ab07490 commit 711fa82
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public IViewCompiler GetCompiler()
_compiler = _services
.GetServices<IViewCompilerProvider>()
.FirstOrDefault()
.GetCompiler();
?.GetCompiler();
}

return _compiler;
Expand Down

0 comments on commit 711fa82

Please sign in to comment.