I've read several thread about it--but it's hard to reproduce and there doesn't seem to be a real solution for it.
I tend to get this error:
Code: Select all
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at it.gotoandplay.smartfoxserver.handlers::SysHandler/handleUserLeaveRoom()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at it.gotoandplay.smartfoxserver.handlers::SysHandler/handleMessage()
at it.gotoandplay.smartfoxserver::SmartFoxClient/xmlReceived()
at it.gotoandplay.smartfoxserver::SmartFoxClient/handleMessage()
at it.gotoandplay.smartfoxserver::SmartFoxClient/handleSocketData()
Now, in my application the users are always connected to 2 rooms. One lobby and one game room. I don't know if that has anything to do with it....as there seem to be other bugs with being in two rooms at once (the room vars which still hasn't been patched)
Most of the bugs related to this call seem to be in calling getroomlist--but I only call it once. I call it when searching for a private game room to join. And that's it.
My theory is that there's a bug where SFS is using the wrong room reference when trying to pull out the leaving user to post the userleave message. Or--the user has already been deleted by SFS before SFS makes the event call. I think that because I'm quitting out of the browser entirely--the user is being deleted because he's disconnected...but it's still sending the userleave message...however since the user has completely closed the browser, SFS has already deleted the user object.
I really really would like to get this resolved as it's making my game completely unstable.