From 78b074e7da62acbd30ace3213c4dabea255f34a1 Mon Sep 17 00:00:00 2001 From: nothingTVatYT Date: Tue, 3 Oct 2023 01:14:35 +0200 Subject: [PATCH] Fix segfault: target can be null when font size is changed --- Source/Editor/Windows/ContentWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/Windows/ContentWindow.cs b/Source/Editor/Windows/ContentWindow.cs index c25316e9a..b8e8a15ed 100644 --- a/Source/Editor/Windows/ContentWindow.cs +++ b/Source/Editor/Windows/ContentWindow.cs @@ -989,7 +989,7 @@ namespace FlaxEditor.Windows } _view.ShowItems(items, _sortType, false, true); } - else + else if (target != null) { // Show folder contents var items = target.Folder.Children;