Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Fix logger null ref
Browse files Browse the repository at this point in the history
  • Loading branch information
nbarbettini committed Jul 11, 2017
1 parent 51c38c2 commit 317ab6d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Microsoft.Extensions.Options;
using Stormpath.Owin.Abstractions.Configuration;

Expand Down Expand Up @@ -64,7 +65,7 @@ public StormpathAuthenticationMiddleware(
}

_config = integrationConfiguration;
_logger = logger;
_logger = logger ?? NullLogger.Instance;
}

protected override AuthenticationHandler<StormpathAuthenticationOptions> CreateHandler()
Expand Down

0 comments on commit 317ab6d

Please sign in to comment.