Skip to content

Commit

Permalink
Merge pull request #460 from ucdavis/swe/EventQueueHistoryBug2
Browse files Browse the repository at this point in the history
Last fix was broken
  • Loading branch information
sprucely authored Aug 27, 2024
2 parents 0a286bc + 11a1785 commit 6cf4882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hippo.Core/Services/UserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public async Task<string> GetCurrentOpenRequestsAsync()
// Get any user based on their claims, creating if necessary
public async Task<User> GetUser(Claim[] userClaims)
{
string iamId = userClaims.SingleOrDefault(c => c.Type == IamIdClaimType).Value;
string iamId = userClaims.SingleOrDefault(c => c.Type == IamIdClaimType)?.Value;
if (iamId == null)
{
// This is a normal condition for EventQueue api requests. It's probably not helpful to log a warning.
Expand Down

0 comments on commit 6cf4882

Please sign in to comment.