fixed panic

This commit is contained in:
crn4
2025-10-29 22:15:09 +01:00
parent 95cf5ab673
commit 20c65cffc2

View File

@@ -28,6 +28,9 @@ func (am *DefaultAccountManager) getPeerNetworkMapExp(
account := am.getAccountFromHolder(accountId)
if account == nil {
log.WithContext(ctx).Warnf("account %s not found in holder when getting peer network map", accountId)
return &types.NetworkMap{
Network: &types.Network{},
}
}
return account.GetPeerNetworkMapExp(ctx, peerId, customZone, validatedPeers, metrics)
}