Fix NullReferenceException in some older Unity games

This commit is contained in:
Sinai 2022-01-24 17:49:01 +11:00
parent ee8f33a754
commit c7d7569f71

View File

@ -261,7 +261,7 @@ namespace UnityExplorer.CacheObject
{
cell.NameLabel.text = NameLabelText;
if (cell.HiddenNameLabel != null)
cell.HiddenNameLabel.Text = NameLabelTextRaw;
cell.HiddenNameLabel.Text = NameLabelTextRaw ?? string.Empty;
cell.ValueLabel.gameObject.SetActive(true);
cell.SubContentHolder.gameObject.SetActive(SubContentShowWanted);