Unexpected Exception: java.lang.NullPointerException

You think you've found a bug? Please report it here.

Moderators: Lapo, Bax

Post Reply
Bru
Posts: 8
Joined: 13 Oct 2006, 17:36

Unexpected Exception: java.lang.NullPointerException

Post 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
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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.
Lapo
--
gotoAndPlay()
...addicted to flash games
Bru
Posts: 8
Joined: 13 Oct 2006, 17:36

Post by Bru »

Actually, the createRoom is disable for each zone. It's the only one.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply