From 558c869dd65d5da05aa49c3b0d141ea020d17132 Mon Sep 17 00:00:00 2001 From: Ash Blue Date: Wed, 13 May 2020 22:35:46 -0600 Subject: [PATCH] fix: no longer crashes if another script is called DialogueGraph --- .../Editor/Windows/FindReplaceWindow/FindReplaceWindow.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/com.fluid.dialogue/Editor/Windows/FindReplaceWindow/FindReplaceWindow.cs b/Assets/com.fluid.dialogue/Editor/Windows/FindReplaceWindow/FindReplaceWindow.cs index eb9e38e..53fd7a7 100644 --- a/Assets/com.fluid.dialogue/Editor/Windows/FindReplaceWindow/FindReplaceWindow.cs +++ b/Assets/com.fluid.dialogue/Editor/Windows/FindReplaceWindow/FindReplaceWindow.cs @@ -18,6 +18,7 @@ protected override IFindResult[] GetFindResults (Func IsValid) { foreach (var graphID in graphIDs) { var path = AssetDatabase.GUIDToAssetPath(graphID); var graph = AssetDatabase.LoadAssetAtPath(path); + if (graph == null) continue; foreach (var node in graph.Nodes) { if (IsValid(node.Text ?? "")) {