diff --git a/Runtime/NodeGroup.cs b/Runtime/NodeGroup.cs index 05138dc..1f681e6 100644 --- a/Runtime/NodeGroup.cs +++ b/Runtime/NodeGroup.cs @@ -19,6 +19,7 @@ namespace XNode.NodeGroups { List result = new List(); foreach (Node node in graph.nodes) { if (node == this) continue; + if (node == null) continue; if (node.position.x < this.position.x) continue; if (node.position.y < this.position.y) continue; if (node.position.x > this.position.x + width) continue; @@ -28,4 +29,4 @@ namespace XNode.NodeGroups { return result; } } -} \ No newline at end of file +}