diff --git a/src/modules/monapi/scache/init.go b/src/modules/monapi/scache/init.go index 82a44bc1..5a84e44e 100644 --- a/src/modules/monapi/scache/init.go +++ b/src/modules/monapi/scache/init.go @@ -269,6 +269,12 @@ func GetExclLeafIds(exclNid []int64) (leafIds []int64, err error) { if err != nil { return leafIds, err } + + if node == nil { + logger.Warningf("no such node[%d]", nid) + continue + } + ids, err := node.LeafIds() if err != nil { return leafIds, err