WorldGuard

WorldGuard

8M Downloads

UseItemEvent Exception

LadyCailinBot opened this issue ยท 2 comments

commented

WORLDGUARD-3957 - Reported by cindy_k

I downloaded the latest build this morning and got this while mining.
I have only this in my blacklist, and it works correctly to prevent bedrock from being placed.
[bedrock]
on-place=deny

Thank you!

[14:08:02] [Server thread/ERROR]: Could not pass event UseItemEvent to WorldGuard v7.0.0-SNAPSHOT;1728-617906c
org.bukkit.event.EventException: null
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:308) ~[spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500) ~[spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485) ~[spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
at com.sk89q.worldguard.bukkit.util.Events.fireToCancel(Events.java:74) ~[?:?]
at com.sk89q.worldguard.bukkit.listener.EventAbstractionListener.onBlockPlace(EventAbstractionListener.java:207) ~[?:?]
at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_171]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_171]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304) ~[spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500) ~[spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485) ~[spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
at org.bukkit.craftbukkit.v1_13_R1.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:153) ~[spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
at net.minecraft.server.v1_13_R1.ItemStack.placeItem(ItemStack.java:204) ~[spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
at net.minecraft.server.v1_13_R1.PlayerInteractManager.a(PlayerInteractManager.java:504) ~[spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
at net.minecraft.server.v1_13_R1.PlayerConnection.a(PlayerConnection.java:1227) ~[spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
at net.minecraft.server.v1_13_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:37) ~[spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
at net.minecraft.server.v1_13_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:1) ~[spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
at net.minecraft.server.v1_13_R1.PlayerConnectionUtils.a(SourceFile:10) ~[spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_171]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_171]
at net.minecraft.server.v1_13_R1.SystemUtils.a(SourceFile:198) [spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
at net.minecraft.server.v1_13_R1.MinecraftServer.w(MinecraftServer.java:884) [spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
at net.minecraft.server.v1_13_R1.DedicatedServer.w(DedicatedServer.java:411) [spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
at net.minecraft.server.v1_13_R1.MinecraftServer.v(MinecraftServer.java:819) [spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
at net.minecraft.server.v1_13_R1.MinecraftServer.run(MinecraftServer.java:717) [spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_171]
Caused by: java.lang.NullPointerException
at com.sk89q.worldguard.blacklist.target.ItemTarget.getTypeId(ItemTarget.java:34) ~[?:?]
at com.sk89q.worldguard.blacklist.MatcherIndex.getEntries(MatcherIndex.java:45) ~[?:?]
at com.sk89q.worldguard.blacklist.Blacklist.check(Blacklist.java:114) ~[?:?]
at com.sk89q.worldguard.bukkit.listener.BlacklistListener.onUseItem(BlacklistListener.java:219) ~[?:?]
at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_171]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_171]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304) ~[spigot-1.13.jar:git-Spigot-69774b3-ff9bab1]
... 27 more

commented

Comment by cindy_k

It is happening when I place or break a torch

commented

Comment by me4502

Please test the latest build