ClientSim PlayerData exception when Player Data value is set to null
FrozenFireElias
SDK Version: 3.9.0
When a Player Data value like a string is set to Null, the ClientSim PlayerData UI will run into a NullReferenceException.
Udon and the rest of the ClientSim continues to function as expected.
Example script:
public class Test : UdonSharpBehaviour
{
public override void Interact()
{
PlayerData.SetString("test", null);
}
}
Log after opening the ClientSim PlayerData UI:
NullReferenceException: Object reference not set to an instance of an object
VRC.SDK3.ClientSim.Editor.ClientSimPlayerDataWindow.<UpdatePlayerDataList>g__Truncate|42_3 (System.Boolean isMultiline, System.String value) (at ./Packages/com.vrchat.worlds/Integrations/ClientSim/Editor/Windows/ClientSimPlayerDataWindow.cs:767)
VRC.SDK3.ClientSim.Editor.ClientSimPlayerDataWindow.UpdatePlayerDataList (System.Collections.Generic.Dictionary`2[TKey,TValue] playerData, VRC.SDKBase.VRCPlayerApi player, System.Boolean redraw) (at ./Packages/com.vrchat.worlds/Integrations/ClientSim/Editor/Windows/ClientSimPlayerDataWindow.cs:558)
VRC.SDK3.ClientSim.Editor.ClientSimPlayerDataWindow.LoadPlayerData (VRC.SDKBase.VRCPlayerApi player, System.Boolean broadcastPlayerDataUpdated) (at ./Packages/com.vrchat.worlds/Integrations/ClientSim/Editor/Windows/ClientSimPlayerDataWindow.cs:336)
VRC.SDK3.ClientSim.Editor.ClientSimPlayerDataWindow.RefreshPlayerData () (at ./Packages/com.vrchat.worlds/Integrations/ClientSim/Editor/Windows/ClientSimPlayerDataWindow.cs:856)
UnityEngine.UIElements.Clickable.Invoke (UnityEngine.UIElements.EventBase evt) (at <332857d8803a4878904bcf8f9581ec33>:0)
[...]
Log In