diff --git a/Scripts/Editor/NodeEditorGUI.cs b/Scripts/Editor/NodeEditorGUI.cs index e3f8c4c..87b2775 100644 --- a/Scripts/Editor/NodeEditorGUI.cs +++ b/Scripts/Editor/NodeEditorGUI.cs @@ -213,7 +213,7 @@ namespace XNodeEditor { hoveredPort = null; } - List preSelection = new List(preBoxSelection); + List preSelection = preBoxSelection != null ? new List(preBoxSelection) : new List(); //Save guiColor so we can revert it Color guiColor = GUI.color;