bugfix: check node is nil
This commit is contained in:
parent
fab8568633
commit
c182c70b8d
|
@ -643,6 +643,10 @@ func GetRelatedNidsForMon(nid int64, exclNid []int64) ([]int64, error) {
|
|||
return nids, err
|
||||
}
|
||||
|
||||
if node == nil {
|
||||
return nids, nil
|
||||
}
|
||||
|
||||
nodes, err := node.RelatedNodes()
|
||||
if err != nil {
|
||||
return nids, err
|
||||
|
|
Loading…
Reference in New Issue