We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90d7d73 commit 39cea0eCopy full SHA for 39cea0e
graffiti/graph/indexer.go
@@ -62,8 +62,10 @@ type Indexer struct {
62
func (i *NodeIndex) FromHash(hash string) (nodes []*Node, values []interface{}) {
63
if ids, found := i.hashToValues[hash]; found {
64
for id, obj := range ids {
65
- nodes = append(nodes, i.graph.GetNode(id))
66
- values = append(values, obj)
+ if node := i.graph.GetNode(id); node != nil {
+ nodes = append(nodes, node)
67
+ values = append(values, obj)
68
+ }
69
}
70
71
return
0 commit comments