| Issue 20: | NullPointerException in reloadPlayerTable() | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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
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
|
Labels: -Priority-Low Priority-Medium