diff --git a/report/node_set.go b/report/node_set.go index e236bd3db..f8fd8deae 100644 --- a/report/node_set.go +++ b/report/node_set.go @@ -74,6 +74,12 @@ func (n NodeSet) Delete(ids ...string) NodeSet { // UnsafeMerge combines the two NodeSets, altering n func (n *NodeSet) UnsafeMerge(other NodeSet) { + if other.psMap == nil { + return + } + if n.psMap == nil { + n.psMap = ps.NewMap() + } other.psMap.ForEach(func(key string, otherVal interface{}) { n.psMap = n.psMap.UnsafeMutableSet(key, otherVal) })