bugfix: GetLeafNidsForMon check node is nil
This commit is contained in:
parent
700370f70f
commit
3534aa7e69
|
@ -576,6 +576,10 @@ func GetLeafNidsForMon(nid int64, exclNid []int64) ([]int64, error) {
|
||||||
return nids, err
|
return nids, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if node == nil {
|
||||||
|
return []int64{}, nil
|
||||||
|
}
|
||||||
|
|
||||||
nodeIds, err := node.LeafIds()
|
nodeIds, err := node.LeafIds()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nids, err
|
return nids, err
|
||||||
|
|
Loading…
Reference in New Issue