Skip to content

Commit b5f3ce6

Browse files
author
Jack Brookes
committed
addresses #24
1 parent 60213ef commit b5f3ce6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Assets/UXF/Scripts/Etc/Editor/UXFSessionDisplay.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,15 @@ static void GUIKeyValuePairColumns(Dictionary<string, object> dict)
181181
if (k.StartsWith("_____")) continue;
182182

183183
GUILayout.BeginHorizontal();
184-
string v = Truncate(pair.Value.ToString(), 100);
184+
string v;
185+
if (pair.Value == null)
186+
{
187+
v = "null";
188+
}
189+
else
190+
{
191+
v = Truncate(pair.Value.ToString(), 100);
192+
}
185193
EditorGUILayout.LabelField(string.Format("[\"{0}\"]: {1}", k, v));
186194
GUILayout.EndHorizontal();
187195
}

0 commit comments

Comments
 (0)