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