bugfix: GetLeafNidsForMon check node is nil

master
Ulric Qin 4 years ago
parent 700370f70f
commit 3534aa7e69

@ -576,6 +576,10 @@ func GetLeafNidsForMon(nid int64, exclNid []int64) ([]int64, error) {
return nids, err
}
if node == nil {
return []int64{}, nil
}
nodeIds, err := node.LeafIds()
if err != nil {
return nids, err

Loading…
Cancel
Save