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?

Answers

  • i mean you could suppress it but dont know why its doing it

  • or this

    1. try{
    2.    // some code that may throw an ExampleException
    3. catch(ExampleException e){
    4.    // whatever you want to do now. Print the error code, do nothing, fix your error (NaNs), ...
    5.    // either way, you caught the exception so the programm should not crash
    6. }


  • MuhsinEge
    Options

    Hi @Picklestring, How can i suppress it? It is just a boolean value. I'll try-catch it but it already catches exception.