Fix crash in editor on exit

This commit is contained in:
Wojtek Figat
2025-03-17 17:18:01 +01:00
parent 80df074b5f
commit 7f081abf92

View File

@@ -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);