mirror of
https://github.com/netbirdio/netbird.git
synced 2025-07-11 11:55:48 +02:00
Fix nil pointer exception in case of error (#2230)
This commit is contained in:
@ -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()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user