thedudeguy/JukeBukkit — Issue #44: [Severe] could not pass CUSTOM_EVENT NPE
Author: nibbles
Created: 2011-10-19 23:08:41+00:00
State: open

This issue does nothing to prevent the plugin from operating correctly, i spawned all the materials necessary to create and demo the plugin and it works fine, but nevertheless, i get this:

2011-10-19 16:18:09 [SEVERE] Could not pass event CUSTOM_EVENT to JukeBukkit
java.lang.NullPointerException
at org.getspout.spout.inventory.SimpleMaterialManager.isCustomItem(SimpleMaterialManager.java:705)
at cc.thedudeguy.jukebukkit.JukeBukkitInventoryListener.onInventoryClick(JukeBukkitInventoryListener.java:54)
at org.getspout.spoutapi.event.inventory.InventoryListener.onCustomEvent(InventoryListener.java:57)
at org.bukkit.plugin.java.JavaPluginLoader$96.execute(JavaPluginLoader.java:918)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
at org.getspout.spout.SpoutNetServerHandler.handleInventoryClick(SpoutNetServerHandler.java:387)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:342)
at net.minecraft.server.Packet102WindowClick.a(SourceFile:28)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
2011-10-19 16:18:12 [INFO] Inventory Craft Event
2011-10-19 16:18:49 [INFO] dougdashwitz: Giving dougdashwitz some 84 (JUKEBOX)
2011-10-19 16:18:56 [INFO] dougdashwitz: Giving dougdashwitz some 61 (FURNACE)
2011-10-19 16:19:14 [INFO] dougdashwitz: Giving dougdashwitz some 84 (JUKEBOX)
2011-10-19 16:19:25 [INFO] dougdashwitz: Giving dougdashwitz some 61 (FURNACE)
2011-10-19 16:19:32 [INFO] Inventory Craft Event
2011-10-19 16:19:46 [INFO] dougdashwitz: Giving dougdashwitz some 84 (JUKEBOX)
2011-10-19 16:19:55 [INFO] dougdashwitz: Giving dougdashwitz some 25 (NOTE_BLOCK)
2011-10-19 16:20:00 [INFO] Inventory Craft Event
2011-10-19 16:22:11 [INFO] dougdashwitz: Giving dougdashwitz some 339 (PAPER)
2011-10-19 16:22:34 [SEVERE] Could not pass event CUSTOM_EVENT to JukeBukkit
java.lang.NullPointerException
at org.getspout.spout.inventory.SimpleMaterialManager.isCustomItem(SimpleMaterialManager.java:705)
at cc.thedudeguy.jukebukkit.JukeBukkitInventoryListener.onInventoryClick(JukeBukkitInventoryListener.java:54)
at org.getspout.spoutapi.event.inventory.InventoryListener.onCustomEvent(InventoryListener.java:57)
at org.bukkit.plugin.java.JavaPluginLoader$96.execute(JavaPluginLoader.java:918)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
at org.getspout.spout.SpoutNetServerHandler.handleInventoryClick(SpoutNetServerHandler.java:387)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:342)
at net.minecraft.server.Packet102WindowClick.a(SourceFile:28)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)