Fix crash regression when textbox watermak is null

This commit is contained in:
2025-06-05 12:47:45 +02:00
parent 1eaf40f2f7
commit ba75fd5882
+1 -1
View File
@@ -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);
}