If a persistent string[] or VRCUrl (or array of them) is initialized with null (by default), ClientSim crashes trying to read
dataToken.String
.
The problematic code is in
ClientSimUdonEncodeDecode.Get
where it attempts to read
dataToken.String
without checking for null.
This crashes with the error "InvalidOperationException: Attempted to access Null token as String"
The line can be fixed by changing it to:
dataToken.TokenType == TokenType.Null ? "" : dataToken.String
and
dataToken.TokenType == TokenType.Null ? VRCUrl.Empty : new VRCUrl(dataToken.String)