Skip to content

Commit

Permalink
fix: Fix NullReferenceException
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-dudarev committed Sep 4, 2024
1 parent 60519e0 commit 35d390d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private Task<Store> GetStore(TokenRequestContext context)
var storeId = context.Request.GetParameter(ModuleConstants.Parameters.StoreId)?.Value?.ToString();

return string.IsNullOrEmpty(storeId)
? null
? Task.FromResult<Store>(null)
: _storeService.GetNoCloneAsync(storeId);
}

Expand Down

0 comments on commit 35d390d

Please sign in to comment.