2006-Scape/2006Scape

Dueling NPE

ipkpjersi opened this issue · 0 comments

Not sure if this one is valid, maybe I was doing something wrong, I might take a look at this more some time but just making this issue in case it is a valid issue:

java.lang.NullPointerException: Cannot invoke "com.rs2.net.Packet.getOpcode()" because "packet" is null
	at com.rs2.net.packets.impl.ChallengePlayer.processPacket(ChallengePlayer.java:15)
	at com.rs2.net.packets.impl.AttackPlayer.processPacket(AttackPlayer.java:35)
	at com.rs2.net.packets.PacketHandler.processPacket(PacketHandler.java:169)
	at com.rs2.game.players.Player.processQueuedPackets(Player.java:1080)
	at com.rs2.game.players.PlayerHandler.process(PlayerHandler.java:185)
	at com.rs2.GameEngine$1.run(GameEngine.java:250)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)
Saved game for test2.
Saved game for test.

Dueling seems to work but it was weird that it had an NPE.

As you can see I logged out, though we don't have dates in our printlns so I suspect that was much later.