BentoBoxWorld / Warps

BentoBox add-on for Welcome Warp Signs
Eclipse Public License 2.0
10 stars 12 forks source link

Fix null player on removeWarp #100

Closed HSGamer closed 2 years ago

HSGamer commented 2 years ago
[10:21:18] [Server thread/WARN]: [BentoBox] Task #368746 for BentoBox v1.19.1-SNAPSHOT-LOCAL generated an exception
java.lang.NullPointerException: Cannot invoke "org.bukkit.entity.Player.getUniqueId()" because "player" is null
    at world.bentobox.bentobox.api.user.User.getInstance(User.java:82) ~[BentoBox.jar:?]
    at world.bentobox.warps.WarpSignsManager.removeWarp(WarpSignsManager.java:244) ~[Warps.jar:?]
    at world.bentobox.warps.WarpSignsManager.warpPlayer(WarpSignsManager.java:438) ~[Warps.jar:?]
    at world.bentobox.warps.commands.WarpCommand.lambda$execute$3(WarpCommand.java:71) ~[Warps.jar:?]
    at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[patched_1.17.1.jar:git-Pufferfish-19]
    at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[patched_1.17.1.jar:git-Pufferfish-19]
    at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1569) ~[patched_1.17.1.jar:git-Pufferfish-19]
    at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:495) ~[patched_1.17.1.jar:git-Pufferfish-19]
    at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1485) ~[patched_1.17.1.jar:git-Pufferfish-19]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1284) ~[patched_1.17.1.jar:git-Pufferfish-19]
    at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:321) ~[patched_1.17.1.jar:git-Pufferfish-19]
    at java.lang.Thread.run(Thread.java:833) ~[?:?]