hey ! i am calling the WarpClient.GetInstance ().GetAllRooms (); to get the room ids in the zone request listener .the fuction upto there works well but when the call back is received it showsa me this error:
NullReferenceException: Object reference not set to an instance of an object
AssemblyCSharp.Listener.onGetAllRoomsDone (com.shephertz.app42.gaming.multiplayer.client.events.AllRoomsEvent eventObj) (at Assets/Listener.cs:113)
com.shephertz.app42.gaming.multiplayer.client.WarpClient.GetAllRooms ()
appwarp.Start () (at Assets/appwarp.cs:38)
my zone request listener code is as follows:-
public void onGetAllRoomsDone (AllRoomsEvent eventObj)
{
Debug.Log ("rooms");
Log ("onGetAllRoomsDone : " + eventObj.getResult());
Debug.Log ("onGetAllRoomsDone : " + eventObj.getResult());
for(int i=0; i< eventObj.getRoomIds().Length; i++)
{
Log("Room ID : " + eventObj.getRoomIds()[i]);
}
}
Please Help!Thanks in advance.