fixed panic

This commit is contained in:
crn4
2025-10-30 16:55:20 +01:00
parent 1002d45232
commit 60e3bf4084
+3
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)
}