Skip to content

Commit b01b333

Browse files
committed
Handle null logger
1 parent fdffdc5 commit b01b333

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NetCoreToolService/Controllers/NewController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public async Task<ActionResult> GetTemplateProject(
149149
var stopwatch = new Stopwatch();
150150
stopwatch.Start();
151151

152-
_logger.LogInformation("New: template={Template}, options={Options}, packaging={Packaging}", template, options, packaging);
152+
_logger?.LogInformation("New: template={Template}, options={Options}, packaging={Packaging}", template, options, packaging);
153153

154154
try
155155
{

0 commit comments

Comments
 (0)