From 7f081abf92be3f86fe2cc44e9a7c1bb3d2414a3e Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 17 Mar 2025 17:18:01 +0100 Subject: [PATCH] Fix crash in editor on exit --- Source/Editor/Windows/OutputLogWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/Windows/OutputLogWindow.cs b/Source/Editor/Windows/OutputLogWindow.cs index 8db89581a..fa09a1867 100644 --- a/Source/Editor/Windows/OutputLogWindow.cs +++ b/Source/Editor/Windows/OutputLogWindow.cs @@ -272,7 +272,7 @@ namespace FlaxEditor.Windows private void OnOutputTextChanged() { - if (IsLayoutLocked) + if (IsLayoutLocked || _output == null) return; _hScroll.Maximum = Mathf.Max(_output.TextSize.X, _hScroll.Minimum);