Skip to content

Commit

Permalink
Fix panic in remoteServerUpdate
Browse files Browse the repository at this point in the history
Signed-off-by: Neil Twigg <[email protected]>
  • Loading branch information
neilalexander committed Aug 7, 2024
1 parent 302ed18 commit 44938ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -1632,7 +1632,7 @@ func (s *Server) remoteServerUpdate(sub *subscription, c *client, _ *Account, su
si.BinaryStreamSnapshot(),
accountNRG,
})
if accountNRG != oldInfo.(nodeInfo).accountNRG {
if oldInfo == nil || accountNRG != oldInfo.(nodeInfo).accountNRG {
// One of the servers we received statsz from changed its mind about
// whether or not it supports in-account NRG, so update the groups
// with this information.
Expand Down

0 comments on commit 44938ec

Please sign in to comment.