You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, this condition is not correct because ps.getNode returns nil, ErrPeerDoesNotExist if the peerID is not in the map, so the expression node.state[... will cause a nil pointer panic
Describe the bug
Inside the
./dot/peerstate/peerstate.go
file the methodlastConnectedAndDiscovered
calls the methodgetNode
with the current condition:However, this condition is not correct because
ps.getNode
returnsnil, ErrPeerDoesNotExist
if the peerID is not in the map, so the expressionnode.state[...
will cause a nil pointer panicPossible Solution
Return the error
The text was updated successfully, but these errors were encountered: