Issue Details#951 Could not pass event HangingPlaceEvent to Prism v2.0.4-19

  • Priority: Normal
  • Number: 951
  • Type: Bug
  • Status: New
  • Age: 295 Days

Description

Spigot 1.8 error in Console, probably caused by a player using a leash.

[18:33:25 ERROR]: Could not pass event HangingPlaceEvent to Prism v2.0.4-19 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[spigot.jar:git-Spigot-9b45d9f-6b061e2] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-9b45d9f-6b061e2] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-9b45d9f-6b061e2] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-9b45d9f-6b061e2] at net.minecraft.server.v1_8_R1.ItemLeash.a(ItemLeash.java:48) [spigot.jar:git-Spigot-9b45d9f-6b061e2] at net.minecraft.server.v1_8_R1.BlockFence.interact(SourceFile:144) [spigot.jar:git-Spigot-9b45d9f-6b061e2] at net.minecraft.server.v1_8_R1.PlayerInteractManager.interact(PlayerInteractManager.java:492) [spigot.jar:git-Spigot-9b45d9f-6b061e2] at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:724) [spigot.jar:git-Spigot-9b45d9f-6b061e2] at net.minecraft.server.v1_8_R1.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:50) [spigot.jar:git-Spigot-9b45d9f-6b061e2] at net.minecraft.server.v1_8_R1.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:80) [spigot.jar:git-Spigot-9b45d9f-6b061e2] at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [spigot.jar:git-Spigot-9b45d9f-6b061e2] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0] at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:683) [spigot.jar:git-Spigot-9b45d9f-6b061e2] at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot.jar:git-Spigot-9b45d9f-6b061e2] at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623) [spigot.jar:git-Spigot-9b45d9f-6b061e2] at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526) [spigot.jar:git-Spigot-9b45d9f-6b061e2] at java.lang.Thread.run(Thread.java:744) [?:1.8.0] Caused by: java.lang.NullPointerException at org.bukkit.craftbukkit.v1_8_R1.entity.CraftHanging.getFacing(CraftHanging.java:52) ~[spigot.jar:git-Spigot-9b45d9f-6b061e2] at org.bukkit.craftbukkit.v1_8_R1.entity.CraftHanging.getAttachedFace(CraftHanging.java:18) ~[spigot.jar:git-Spigot-9b45d9f-6b061e2] at me.botsko.prism.actions.HangingItemAction.setHanging(HangingItemAction.java:37) ~[?:?] at me.botsko.prism.actionlibs.ActionFactory.createHangingItem(ActionFactory.java:169) ~[?:?] at me.botsko.prism.listeners.PrismEntityEvents.onHangingPlaceEvent(PrismEntityEvents.java:397) ~[?:?] at sun.reflect.GeneratedMethodAccessor468.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0] at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[spigot.jar:git-Spigot-9b45d9f-6b061e2] ... 17 more

History

lahemees47 January 6, 2020 4:39 PM

Issue reported.

luffy March 17, 2020 2:02 AM

Same error ( https://pste.me/#/prism-hangingplaceevent-npe ) using Spigot 1.8 and Prism 2.0.5-21

I haven't been able to tell the cause (not sure about the leash), but I thought this might've been caused by item frames that aren't on a block (floating in the air) which, in my case, can be done since GriefPrevention will prevent the frames from breaking even if not on a supporting block. Just a guess though given the methods it seems to throw an NPE at.

Sorry if I shouldn't bump old-ish tickets, but there's been no updates on it's status. Not sure if this is fixed in later version, just thought it might help to have an update.

Update Issue

Add your comments to this issue!

Creating a free account will let you immediately report issues on this project, as well as comment on existing issues, save your filters, and more!!