md-5 / Deadbolt

The sign-based container and door lock for Bukkit
19 stars 19 forks source link

Null error when placing Beacon blocks #76

Closed theboomer closed 11 years ago

theboomer commented 11 years ago

Been present through the past few versions, is present in the most recent "2.1.x" link even though the plugin reports that it is verison 2.2 to /version

Something is nulling out on you unchecked leading to the error:

Test environment: Bukkit 1.4.7 beta R0.1 and deadbolt 2.1.x / 2.2 nothing else at all.

Place beacon block:

2013-01-26 16:37:04 [SEVERE] Could not pass event BlockPlaceEvent to Deadbolt v2.2 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.v1_4_R1.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:100) at net.minecraft.server.v1_4_R1.ItemBlock.processBlockPlace(ItemBlock.java:85) at net.minecraft.server.v1_4_R1.ItemBlock.interactWith(ItemBlock.java:71) at net.minecraft.server.v1_4_R1.ItemStack.placeItem(ItemStack.java:72) at net.minecraft.server.v1_4_R1.PlayerInteractManager.interact(PlayerInteractManager.java:392) at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:656) at net.minecraft.server.v1_4_R1.Packet15Place.handle(SourceFile:58) at net.minecraft.server.v1_4_R1.NetworkManager.b(NetworkManager.java:290) at net.minecraft.server.v1_4_R1.PlayerConnection.d(PlayerConnection.java:112) at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:39) at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:598) at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224) at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.IllegalArgumentException: Permission name cannot be null at org.bukkit.permissions.PermissibleBase.hasPermission(PermissibleBase.java:66) at org.bukkit.craftbukkit.v1_4_R1.entity.CraftHumanEntity.hasPermission(CraftHumanEntity.java:109) at com.daemitus.deadbolt.events.BlockListener.onBlockPlace(BlockListener.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 19 more