Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit c7d7569

Browse files
committed
Fix NullReferenceException in some older Unity games
1 parent ee8f33a commit c7d7569

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CacheObject/CacheObjectBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public virtual void SetDataToCell(CacheObjectCell cell)
261261
{
262262
cell.NameLabel.text = NameLabelText;
263263
if (cell.HiddenNameLabel != null)
264-
cell.HiddenNameLabel.Text = NameLabelTextRaw;
264+
cell.HiddenNameLabel.Text = NameLabelTextRaw ?? string.Empty;
265265
cell.ValueLabel.gameObject.SetActive(true);
266266

267267
cell.SubContentHolder.gameObject.SetActive(SubContentShowWanted);

0 commit comments

Comments
 (0)