Caught exception in OnEvent() for event code 253: System.IndexOutOfRangeException
Options
PhotonNetwork.SetPlayerCustomProperties(new ExitGames.Client.Photon.Hashtable {
{ PLAYER_READY, "True" }
});
After i call the SetPlayerCustomProperties there is an exception as
Caught exception in OnEvent() for event code 253: System.IndexOutOfRangeException: Index was outside the bounds of the array.
My OnPlayerPropertiesUpdate method works just fine and it does not broke the game it is just a caught exception but it is annoying and i don't know why it is happening. Any help?
0
Answers
-
i mean you could suppress it but dont know why its doing it
0 -
or this
- try{
- // some code that may throw an ExampleException
- } catch(ExampleException e){
- // whatever you want to do now. Print the error code, do nothing, fix your error (NaNs), ...
- // either way, you caught the exception so the programm should not crash
- }
0 -
Hi @Picklestring, How can i suppress it? It is just a boolean value. I'll try-catch it but it already catches exception.
0