Post line 55 of PlayerSave.java
|
|
This has happened to my 317 [PI] server. I can start it up on the VPS and i log in with a character but i believe if someone else logs in while im online or if i log out this error pops up and it automatically logs me out and nulls the server I believe.
[3/9/15 8:19 PM]: java.lang.NullPointerException
[3/9/15 8:19 PM]: at game.player.PlayerSave.saveGame(PlayerSave.java:55 5)
[3/9/15 8:19 PM]: at game.player.PlayerHandler.process(PlayerHandler.ja va:229)
[3/9/15 8:19 PM]: at core.Server$1.execute(Server.java:131)
[3/9/15 8:19 PM]: at core.maintick.Task.tick(Task.java:116)
[3/9/15 8:19 PM]: at core.maintick.TaskScheduler.run(TaskScheduler.java :98)
[3/9/15 8:19 PM]: at java.util.concurrent.Executors$RunnableAdapter.cal l(Unknown Source)
[3/9/15 8:19 PM]: at java.util.concurrent.FutureTask.runAndReset(Unknow n Source)
[3/9/15 8:19 PM]: at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.access$301(Unknown Source)
[3/9/15 8:19 PM]: at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.run(Unknown Source)
[3/9/15 8:19 PM]: at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source)
[3/9/15 8:19 PM]: at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
[3/9/15 8:19 PM]: at java.lang.Thread.run(Unknown Source)
If anyone can help me with this I would really appreciate it.
Thanks,
Boots =)

Post line 55 of PlayerSave.java
Well when I click on the error thing on the line 55 5 it takes me to this line 555 characterfile.write(player.accountDateCreated, 0, player.accountDateCreated.length());
And PlayerHandler.Java line 229 it says if (PlayerSave.saveGame(o1))

I don't understand what you are meaning by that?I posted the wrong one or?
PlayerSave.java line 555:
characterfile.write(player.accountDateCreated, 0, player.accountDateCreated.length());
characterfile.newLine();

Nope, not at all there's just more to the error, sec.
Code:characterfile.write(player.accountDateCreated, 0, player.accountDateCreated.length());should fix it actually.Code:characterfile.write("accountDateCreated = ", 0, 22); characterfile.write(Integer.toString(p.AccountDateCreated), 0, Integer.toString(p.AccountDateCreated).length()); characterfile.newLine();
characterfile.write("accountDateCreated = ", 0, 21);
characterfile.write(player.accountDateCreated, 0, player.accountDateCreated.length());
characterfile.newLine();
Thats what mine says. the full code of it.
Can anyone help me with this please?![]()
| « [PI] Npcs walking on each other | need a help with vps centOS 5.0 » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |