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

[BUG] /team baltop #623

Closed
ShikuretSensei opened this issue Jul 5, 2024 · 1 comment
Closed

[BUG] /team baltop #623

ShikuretSensei opened this issue Jul 5, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ShikuretSensei
Copy link

What is the bug?

When doing /team baltop I get this issue

[16:11:39 INFO]: EtoGamesLive issued server command: /team baltop
[16:11:39 WARN]: [BetterTeams] Plugin BetterTeams v4.9.4 generated an exception while executing task 45789
java.lang.NullPointerException: Cannot invoke "com.booksaw.betterTeams.Team.getName()" because "tempTeam" is null
at BetterTeams-4.9.4.jar/com.booksaw.betterTeams.commands.team.BaltopCommand$1.run(BaltopCommand.java:39) ~[BetterTeams-4.9.4.jar:?]
at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.20.6.jar:1.20.6-2233-0d6766e]
at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[purpur-1.20.6.jar:1.20.6-2233-0d6766e]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[purpur-1.20.6.jar:?]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[?:?]
at java.base/java.lang.Thread.run(Unknown Source) ~[?:?]

Expected Behaviour

When doing /team baltop

How to Reproduce

I just did /teambaltop

Error message

[16:11:39 INFO]: EtoGamesLive issued server command: /team baltop
[16:11:39 WARN]: [BetterTeams] Plugin BetterTeams v4.9.4 generated an exception while executing task 45789
java.lang.NullPointerException: Cannot invoke "com.booksaw.betterTeams.Team.getName()" because "tempTeam" is null
at BetterTeams-4.9.4.jar/com.booksaw.betterTeams.commands.team.BaltopCommand$1.run(BaltopCommand.java:39) ~[BetterTeams-4.9.4.jar:?]
at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.20.6.jar:1.20.6-2233-0d6766e]
at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[purpur-1.20.6.jar:1.20.6-2233-0d6766e]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[purpur-1.20.6.jar:?]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[?:?]
at java.base/java.lang.Thread.run(Unknown Source) ~[?:?]

Output of /teama version

image

Additional Information

No response

@ShikuretSensei ShikuretSensei added the bug Something isn't working label Jul 5, 2024
@booksaw booksaw changed the title [BUG] [BUG] /team baltop Jul 22, 2024
booksaw added a commit that referenced this issue Jul 30, 2024
@booksaw
Copy link
Owner

booksaw commented Jul 30, 2024

Set rebuildLookups to true and restart your server, it should fix the problem.
I have also improved the logging so I am going to close the issue.
Please feel free to open a new one if you have further problems.

@booksaw booksaw closed this as completed Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants