Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dueling NPE #639

Open
ipkpjersi opened this issue Dec 19, 2023 · 0 comments · May be fixed by #650
Open

Dueling NPE #639

ipkpjersi opened this issue Dec 19, 2023 · 0 comments · May be fixed by #650

Comments

@ipkpjersi
Copy link
Contributor

ipkpjersi commented Dec 19, 2023

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.

@ipkpjersi ipkpjersi linked a pull request Dec 31, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant