Skip to content

Commit

Permalink
Fix nil pointer exception in case of error (#2230)
Browse files Browse the repository at this point in the history
  • Loading branch information
pappz authored Jul 2, 2024
1 parent cea19de commit 7cb81f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion management/server/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ func (am *DefaultAccountManager) peerLoginExpirationJob(accountID string) func()

account, err := am.Store.GetAccount(accountID)
if err != nil {
log.Errorf("failed getting account %s expiring peers", account.Id)
log.Errorf("failed getting account %s expiring peers", accountID)
return account.GetNextPeerExpiration()
}

Expand Down

0 comments on commit 7cb81f1

Please sign in to comment.