I have a Syncvar which I want to change in a ServerRpc function, but it throws and error. The value of the variable changes on the server.
NullReferenceException: Object reference not set to an instance of an object
NetworkedSack.sync___set_value_owner (Player value, System.Boolean asServer) (at <028e38bd11fc4180a38f5b3c6b1bd291>:0)
NetworkedSack.setOwner (Player owner) (at Assets/Scripts/NetworkedSack.cs:59)
What I can understand from this is that FishNet makes a function called sync___set_value_owner which would synchronize the value of the variable to clients. How could I find out what is the Object reference that has a null value, or start debugging this?