From 22d754e7972fb7c51382e928a2642d7414da8e29 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 7 Nov 2023 16:21:56 +0100 Subject: [PATCH] Fix error during new json asset creation via `ContentContextMenu` if the class is missing empty constructor #1838 --- Source/Editor/Windows/ContentWindow.ContextMenu.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/Windows/ContentWindow.ContextMenu.cs b/Source/Editor/Windows/ContentWindow.ContextMenu.cs index f577a94d3..168067977 100644 --- a/Source/Editor/Windows/ContentWindow.ContextMenu.cs +++ b/Source/Editor/Windows/ContentWindow.ContextMenu.cs @@ -187,7 +187,7 @@ namespace FlaxEditor.Windows continue; // Get context proxy - ContentProxy p; + ContentProxy p = null; if (type.Type.IsSubclassOf(typeof(ContentProxy))) { p = Editor.ContentDatabase.Proxy.Find(x => x.GetType() == type.Type);