Fixed NullPointerException #136
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixed NullPointerException:
[01:16:48 WARN]: [PlayerParticles] Task #164562099 for PlayerParticles v8.10 generated an exception java.lang.NullPointerException: Cannot invoke "org.bukkit.permissions.Permissible.hasPermission(String)" because "p" is null at PlayerParticles-8.10.jar/dev.esophose.playerparticles.manager.PermissionManager$PPermission.check(PermissionManager.java:67) ~[PlayerParticles-8.10.jar:?] at PlayerParticles-8.10.jar/dev.esophose.playerparticles.manager.PermissionManager.hasPlayerReachedMaxGroups(PermissionManager.java:204) ~[PlayerParticles-8.10.jar:?] at PlayerParticles-8.10.jar/dev.esophose.playerparticles.gui.GuiInventoryManageGroups.<init>(GuiInventoryManageGroups.java:128) ~[PlayerParticles-8.10.jar:?] at PlayerParticles-8.10.jar/dev.esophose.playerparticles.gui.GuiInventoryManageGroups.lambda$new$4(GuiInventoryManageGroups.java:192) ~[PlayerParticles-8.10.jar:?] at PlayerParticles-8.10.jar/dev.esophose.playerparticles.gui.hook.PlayerChatHookData.triggerCallback(PlayerChatHookData.java:69) ~[PlayerParticles-8.10.jar:?] at PlayerParticles-8.10.jar/dev.esophose.playerparticles.gui.hook.PlayerChatHook.run(PlayerChatHook.java:62) ~[PlayerParticles-8.10.jar:?] at PlayerParticles-8.10.jar/dev.esophose.playerparticles.libs.rosegarden.scheduler.RoseScheduler.lambda$wrap$0(RoseScheduler.java:158) ~[PlayerParticles-8.10.jar:?] at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:78) ~[universe-1.21.8.jar:1.21.8-96c962a] at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:481) ~[universe-1.21.8.jar:1.21.8-96c962a] at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1656) ~[universe-1.21.8.jar:1.21.8-96c962a] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1534) ~[universe-1.21.8.jar:1.21.8-96c962a] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1258) ~[universe-1.21.8.jar:1.21.8-96c962a] at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:313) ~[universe-1.21.8.jar:1.21.8-96c962a] at java.base/java.lang.Thread.run(Thread.java:1474) ~[?:?]