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

NPE after right-click on button #3228

Closed
SlimeDog opened this issue Sep 26, 2023 · 2 comments
Closed

NPE after right-click on button #3228

SlimeDog opened this issue Sep 26, 2023 · 2 comments
Labels
Bug Issues that contain unintended behavior DEV release Issues that are related to a DEV version and not present in previous Release version

Comments

@SlimeDog
Copy link

Describe the issue

When I right-clicked on a button (tied to CommandSigns), the following error was generated every two seconds

[18:51:55 WARN]: [Plan] Task #97 for Plan v5.6 build 2542 generated an exception
java.lang.NullPointerException: Cannot invoke "String.isEmpty()" because "this.reasonForUnavailability" is null
        at com.djrapitops.plan.gathering.timed.SpigotPingMethod.getPing(SpigotPingMethod.java:49) ~[Plan-5.6-b2542.jar:?]
        at com.djrapitops.plan.gathering.timed.BukkitPingCounter.getPing(BukkitPingCounter.java:189) ~[Plan-5.6-b2542.jar:?]
        at com.djrapitops.plan.gathering.timed.BukkitPingCounter.run(BukkitPingCounter.java:160) ~[Plan-5.6-b2542.jar:?]
        at net.playeranalytics.plugin.scheduling.UnscheduledBukkitTask.run(UnscheduledBukkitTask.java:22) ~[Plan-5.6-b2542.jar:?]
        at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.20.2.jar:git-Paper-201]
        at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480) ~[paper-1.20.2.jar:git-Paper-201]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1470) ~[paper-1.20.2.jar:git-Paper-201]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:446) ~[paper-1.20.2.jar:git-Paper-201]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1379) ~[paper-1.20.2.jar:git-Paper-201]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1156) ~[paper-1.20.2.jar:git-Paper-201]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:315) ~[paper-1.20.2.jar:git-Paper-201]
        at java.lang.Thread.run(Thread.java:1583) ~[?:?]

The error was not generated when I left-clicked on the same button, or left-clicked or right-clicked on a "free" button (ie., not associated with CommandSigns).

Exceptions & Other Logs

No Plan logs. Do I need to configure something?

Plugin versions

paper-1.20.2.jar:git-Paper-201
Plan-5.6-b2542

Additional information

@SlimeDog SlimeDog added the Bug Issues that contain unintended behavior label Sep 26, 2023
@AuroraLS3 AuroraLS3 added the DEV release Issues that are related to a DEV version and not present in previous Release version label Sep 26, 2023
@AuroraLS3
Copy link
Collaborator

@SlimeDog
Copy link
Author

Confirmed fixed with build 2544 (linked above). Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues that contain unintended behavior DEV release Issues that are related to a DEV version and not present in previous Release version
Projects
None yet
Development

No branches or pull requests

2 participants