Page 1 of 1

getApi().joinRoom(user, room); not working second time

Posted: 07 Mar 2013, 10:20
by madhanakrishnan
Hi Every One We are developing Rummy game with SFS, Java, AmfPHP, Mysql. We introduced tournament feature for our clients. While i writing code getApi().joinRoom(user, room); not working for second level(second time) users. Please help me.

Re: getApi().joinRoom(user, room); not working second time

Posted: 07 Mar 2013, 11:01
by Lapo
The joinRoom() method throws several exceptions, are you catching them?
Make sure to check the logs and see what kind of error you are getting, then let us know

Re: getApi().joinRoom(user, room); not working second time

Posted: 09 Mar 2013, 04:47
by madhanakrishnan
I'm getting this error(please see attached file), when i execute getApi().joinRoom(user, room); second time(It working fine for first time). Please reply.

Re: getApi().joinRoom(user, room); not working second time

Posted: 09 Mar 2013, 10:52
by Lapo
It is a NullPointerException happening in your disconnection handler. Check what's going on at line 58 of the specified class, evidently you are calling a method on an object that is null.