User coming null in onUserVariablesUpdate event
Posted: 05 Oct 2009, 06:52
Hi,
We are facing a random problem where the user object is coming null while we are capturing the onUserVariablesUpdate event.
i) The version used is 1.6.6.
ii) The error comes at random times but the occurence is always when I come out of a game room to the lobby which is a non-game room.
iii) The code flow is :-
a) On clicking exit game, sfs.getRoomList() is called.
b) When the room list arrives, joinRoom("lobby") is called.
iv) While checking the debug output what I found that :-
a) I receive the room list correctly.
b) A uVarsUpdate message is received for the game room just after the joinRoom(lobby) message is sent.
c) The error occurs after the uVarsUpdate message is received. I tried tracing the user but the user is coming null.
d) onJoinroom message comes after the error. That means the user is still in the game room when the uVarsUpdate message came. And hence it should be captured correctly.
v) I tried going through the SmartFoxClient and SysHandler code but could not get much insight. Please provide some pointers to crack the problem.
Thanks,
We are facing a random problem where the user object is coming null while we are capturing the onUserVariablesUpdate event.
i) The version used is 1.6.6.
ii) The error comes at random times but the occurence is always when I come out of a game room to the lobby which is a non-game room.
iii) The code flow is :-
a) On clicking exit game, sfs.getRoomList() is called.
b) When the room list arrives, joinRoom("lobby") is called.
iv) While checking the debug output what I found that :-
a) I receive the room list correctly.
b) A uVarsUpdate message is received for the game room just after the joinRoom(lobby) message is sent.
c) The error occurs after the uVarsUpdate message is received. I tried tracing the user but the user is coming null.
d) onJoinroom message comes after the error. That means the user is still in the game room when the uVarsUpdate message came. And hence it should be captured correctly.
v) I tried going through the SmartFoxClient and SysHandler code but could not get much insight. Please provide some pointers to crack the problem.
Thanks,