Skip to content

Commit 2bd9055

Browse files
committed
Fix SkiaLabel ParseText nullref
1 parent 1ff001b commit 2bd9055

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Assets/Scripts/OpenTS2/UI/Skia/SkiaLabel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,8 @@ private void ParseText(SKImageInfo imageInfo)
464464
{
465465
var parsedText = new ParsedLabelText();
466466
var text = m_Text;
467+
if (string.IsNullOrEmpty(text))
468+
text = "";
467469
parsedText.OriginalText = text;
468470
text = text.Replace('\t', ' ');
469471

0 commit comments

Comments
 (0)