Fix nil pointer exception in case of error (#2230)

This commit is contained in:
Zoltan Papp 2024-07-02 18:18:14 +02:00 committed by GitHub
parent cea19de667
commit 7cb81f1d70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()
}