From ba75fd58825c3c82d85a1718b14f96f6c74643fb Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 5 Jun 2025 12:47:45 +0200 Subject: [PATCH] Fix crash regression when textbox watermak is `null` --- Source/Engine/UI/GUI/Common/TextBox.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/UI/GUI/Common/TextBox.cs b/Source/Engine/UI/GUI/Common/TextBox.cs index 9ee052581..1dfd9facc 100644 --- a/Source/Engine/UI/GUI/Common/TextBox.cs +++ b/Source/Engine/UI/GUI/Common/TextBox.cs @@ -301,7 +301,7 @@ namespace FlaxEngine.GUI else { text = _watermarkText; - if (text.Length > 0) + if (text?.Length > 0) { Render2D.DrawText(font, _watermarkText, WatermarkTextColor, ref _layout, TextMaterial); }