Page 1 of 1

Unexpected Exception: java.lang.NullPointerException

Posted: 26 Feb 2007, 14:49
by Bru
Hi, in the server log file we get that error quite often and I would like your opinion on that:

[ WARNING ] > Unexpected Exception: java.lang.NullPointerException
at it.gotoandplay.smartfoxserver.controllers.SystemHandler.processEvent(SystemHandler.java:274)
at it.gotoandplay.smartfoxserver.controllers.SystemHandler.run(SystemHandler.java:112)
at java.lang.Thread.run(Unknown Source)

SmartFox Server 1.4 PRO

Thanks

Posted: 27 Feb 2007, 11:41
by Lapo
It's probably caused by the fact the the socket object is null, so the user doesn't exist anymore when the code is executed.
It's questionable if this exception should be thrown.

Question: did you disable one or more default "actions" of the default handler? The error seems to be originated from there.

Posted: 27 Feb 2007, 13:55
by Bru
Actually, the createRoom is disable for each zone. It's the only one.

Posted: 27 Feb 2007, 15:34
by Lapo
Great, I expected something like that. Then the error is nothing too important. I am adding this to our todo-list as a fix for the next release