My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 20: NullPointerException in reloadPlayerTable()
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  alexandr...@gmail.com
Closed:  Apr 2010
Cc:  alexandr...@gmail.com


 
Project Member Reported by fww...@gmail.com, Apr 5, 2010
Stack trace:

Exception in thread "Thread-14" java.lang.NullPointerException
	at gameInit.LoadGame.reloadPlayerTable(LoadGame.java:356)
	at network.GameServer.removeConnection(GameServer.java:138)
	at network.GameServerCThread.run(GameServerCThread.java:109)
	at java.lang.Thread.run(Unknown Source)


I was starting and exiting games. I'm not exactly sure when it happened, 
but I think I exited the game from the in-game menu, then told the server 
not to save and just to return to the menu. The exception happened in the 
instance that was acting as server.

However, this didn't seem to actually crash the application, I was able to 
host a new game and start it properly afterwards, so I guess this isn't a 
critical issue.

Here are the console print outs surrounding the exception:

Launching with map=AT-Map.txt
Number of players=2
Exception in thread "Thread-14" java.lang.NullPointerException
	at gameInit.LoadGame.reloadPlayerTable(LoadGame.java:356)
	at network.GameServer.removeConnection(GameServer.java:138)
	at network.GameServerCThread.run(GameServerCThread.java:109)
	at java.lang.Thread.run(Unknown Source)
GameServer: Closing ALL connections
Removing connection to Socket[addr=/127.0.0.1,port=49900,localport=35000]
Connection from Socket[addr=/127.0.0.1,port=49904,localport=35000]
connected to Socket[addr=localhost/127.0.0.1,port=35000,localport=49904]



Apr 5, 2010
Project Member #1 fww...@gmail.com
Updated this issue to medium priority.
I think the problem is when exiting the game, if the server has already exited it may 
have difficulty updating the player table... something like that.
Alex could you look at this?
Cc: alexandre.senecal
Labels: -Priority-Low Priority-Medium
Apr 5, 2010
Project Member #2 alexandr...@gmail.com
I believe I've corrected the problem.
The game server was closing down and being set to null in the game frame
at the same time as the game call to repopulate the table was being called on a now 
null game server.
Status: Fixed

Powered by Google Project Hosting