dredhorse/TheMonkeyPack — Issue #4: NPE when using Items with data values 
Author: dredhorse
Created: 2012-01-07 13:14:36+00:00
State: open
Labels: Bug

for example 351:4

2012-01-07 06:37:37 [SEVERE] Could not pass event PLAYER_COMMAND_PREPROCESS to TheMonkeyPack
java.lang.NullPointerException
at net.minecraft.server.ItemStack.setData(ItemStack.java:153)
at net.minecraft.server.ItemStack.(ItemStack.java:39)
at org.bukkit.craftbukkit.inventory.CraftItemStack.(CraftItemStack.java:61)
at org.bukkit.craftbukkit.inventory.CraftItemStack.(CraftItemStack.java:49)
at org.bukkit.craftbukkit.inventory.CraftItemStack.(CraftItemStack.java:27)
at org.bukkit.craftbukkit.inventory.CraftInventory.firstPartial(CraftInventory.java:216)
at org.bukkit.craftbukkit.inventory.CraftInventory.addItem(CraftInventory.java:242)
at org.simiancage.bukkit.TheMonkeyPack.commands.KitCommand.runCommand(KitCommand.java:243)
at org.simiancage.bukkit.TheMonkeyPack.commands.KitCommand.onPlayerCommand(KitCommand.java:103)
at org.simiancage.bukkit.TheMonkeyPack.listeners.PlayerChatListener.onPlayerCommandPreprocess(PlayerChatListener.java:50)
at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:293)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:750)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)