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

Commit

Permalink
Fix NRE
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Apr 16, 2020
1 parent 44bbff9 commit 9c67199
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ServiceStack.Aws/DynamoDb/DynamoDbAuthRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ private void Sanitize(IUserAuth userAuth)

private IUserAuth DeSanitize(TUserAuth userAuth)
{
if (userAuth == null)
return null;

if (userAuth.UserName != null && userAuth.UserName.Contains("@"))
{
if (userAuth.Email == null)
Expand Down

0 comments on commit 9c67199

Please sign in to comment.