-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major
-
None
-
Affects Version/s: None
Player.openEnchanting(null, true) throws an NPE of sadness. It used to work on CB, but it broke with Spigot
<jkcclemens> providing no block would work
java.lang.NullPointerException
at net.minecraft.server.v1_8_R1.EntityPlayer.openTileEntity(EntityPlayer.java:636)
at org.bukkit.craftbukkit.v1_8_R1.entity.CraftHumanEntity.openEnchanting(CraftHumanEntity.java:297)
at org.royaldev.royalcommands.rcommands.CmdEnchantingTable.runCommand(CmdEnchantingTable.java:23)
at org.royaldev.royalcommands.rcommands.BaseCommand.onCommand(BaseCommand.java:276)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand(CraftServer.java:645)
at net.minecraft.server.v1_8_R1.PlayerConnection.handleCommand(PlayerConnection.java:1115)
at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:950)
at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:26)
at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:53)
at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:683)
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316)
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623)
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526)
at java.lang.Thread.run(Thread.java:745)
Fixed. Usefulness not guaranteed.