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

Refreshing language with packet events causes NPE #467

Open
diogotcorreia opened this issue Jan 8, 2025 · 0 comments
Open

Refreshing language with packet events causes NPE #467

diogotcorreia opened this issue Jan 8, 2025 · 0 comments
Assignees
Labels
module:core Related to the core module module:velocity Related to Velocity type:bug Something isn't working as expected
Milestone

Comments

@diogotcorreia
Copy link
Member

diogotcorreia commented Jan 8, 2025

Describe the bug

[16:15:43 ERROR]: Exception in task com.rexcantor64.triton.player.TritonLanguagePlayer$$Lambda/0x00007f4f18c9d9e8@42d1be7b by plugin Triton
java.lang.NullPointerException: Cannot invoke "com.rexcantor64.triton.lib.packetevents.api.protocol.player.User.sendPacketSilently(com.rexcantor64.triton.lib.packetevents.api.wrapper.PacketWrapper)" because "user" is null
        at com.rexcantor64.triton.player.PacketEventsRefresh.updateScoreboardTeams(PacketEventsRefresh.java:141) ~[?:?]
        at com.rexcantor64.triton.player.PacketEventsRefresh.refreshAll(PacketEventsRefresh.java:97) ~[?:?]
        at com.rexcantor64.triton.player.TritonLanguagePlayer.lambda$refreshAll$0(TritonLanguagePlayer.java:33) ~[?:?]
        at com.velocitypowered.proxy.scheduler.VelocityScheduler$VelocityTask.lambda$run$0(VelocityScheduler.java:285) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
        at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]
[16:15:43 ERROR]: Exception in task com.rexcantor64.triton.player.TritonLanguagePlayer$$Lambda/0x00007f4f18c9d9e8@7b98b6c9 by plugin Triton
java.lang.NullPointerException: Cannot invoke "com.rexcantor64.triton.lib.packetevents.api.protocol.player.User.sendPacketSilently(com.rexcantor64.triton.lib.packetevents.api.wrapper.PacketWrapper)" because "user" is null
        at com.rexcantor64.triton.player.PacketEventsRefresh.updateScoreboardTeams(PacketEventsRefresh.java:141) ~[?:?]
        at com.rexcantor64.triton.player.PacketEventsRefresh.refreshAll(PacketEventsRefresh.java:97) ~[?:?]
        at com.rexcantor64.triton.player.TritonLanguagePlayer.lambda$refreshAll$0(TritonLanguagePlayer.java:33) ~[?:?]
        at com.velocitypowered.proxy.scheduler.VelocityScheduler$VelocityTask.lambda$run$0(VelocityScheduler.java:285) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
        at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]

How can the bug be reproduced?

No response

Expected behaviour

No response

Which Spigot fork are you using?

Vanilla Spigot (from BuildTools)

What's your server version?

unrelated

Which proxy are you using?

Velocity

What's your proxy version?

3.3.0-SNAPSHOT-436

What's the MC version of your client?

unrelated

What's the Triton version you're using?

4.0.0-SNAPSHOT-b20241218

Additional Information

Discord reference: https://discord.com/channels/395565283047374850/1325769482970468422/1326332760796696679

@diogotcorreia diogotcorreia added type:bug Something isn't working as expected module:core Related to the core module module:velocity Related to Velocity labels Jan 8, 2025
@diogotcorreia diogotcorreia added this to the 4.0.0 milestone Jan 8, 2025
@diogotcorreia diogotcorreia self-assigned this Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:core Related to the core module module:velocity Related to Velocity type:bug Something isn't working as expected
Projects
Status: No status
Development

No branches or pull requests

1 participant