Skip to content

Commit

Permalink
nil check in updateend
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Nov 27, 2023
1 parent fea52e0 commit 186e70e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node.go
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ func (n *Node) UpdateEnd(updt bool) {
if !updt {
return
}
if n.Is(Destroyed) || n.Is(Deleted) {
if n.This() == nil || n.Is(Destroyed) || n.Is(Deleted) {
return
}
if n.Is(ChildDeleted) || n.Is(ChildrenDeleted) {
Expand Down

0 comments on commit 186e70e

Please sign in to comment.