Null Pointer Exection on exiting mod added crafting table. #19

  • New
  • Defect
Assigned to _ForgeUser8406248
  • _ForgeUser9275588 created this issue Jul 1, 2015

    Using kits 2.1

    Spigot 1.8.7

    [11:49:46] [Server thread/ERROR]: Could not pass event InventoryCloseEvent to Kits v2.1
    	at$1.execute( ~[JavaPluginLoader$1.class:git-Cauldron-MCPC-Plus-1.7.10-1.1236.06.212]
    	at org.bukkit.plugin.RegisteredListener.callEvent( ~[RegisteredListener.class:git-Cauldron-MCPC-Plus-1.7.10-1.1236.06.212]
    	at org.bukkit.plugin.SimplePluginManager.fireEvent( [SimplePluginManager.class:git-Cauldron-MCPC-Plus-1.7.10-1.1236.06.212]
    	at org.bukkit.plugin.SimplePluginManager.callEvent( [SimplePluginManager.class:git-Cauldron-MCPC-Plus-1.7.10-1.1236.06.212]
    	at org.bukkit.craftbukkit.v1_7_R4.event.CraftEventFactory.handleInventoryCloseEvent( [CraftEventFactory.class:git-Cauldron-MCPC-Plus-1.7.10-1.1236.06.212]
    	at [nh.class:?]
    	at [iy.class:?]
    	at [iy.class:?]
    	at [ej.class:?]
    	at [nc.class:?]
    	at net.minecraft.server.MinecraftServer.func_71190_q( [MinecraftServer.class:?]
    	at net.minecraft.server.dedicated.DedicatedServer.func_71190_q( [lt.class:?]
    	at net.minecraft.server.MinecraftServer.func_71217_p( [MinecraftServer.class:?]
    	at [MinecraftServer.class:?]
    	at Source) [?:1.7.0_75]
    Caused by: java.lang.NullPointerException
    	at com.dragonphase.kits.listeners.EventListener.onInventoryClose( ~[?:?]
    	at sun.reflect.GeneratedMethodAccessor133.invoke(Unknown Source) ~[?:?]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_75]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_75]
    	at$1.execute( ~[JavaPluginLoader$1.class:git-Cauldron-MCPC-Plus-1.7.10-1.1236.06.212]
    	... 14 more

    This is being caused when I exit a crafting table from a forge mod. You should do a null pointer check and just ignore it to fix this. As I am using this on my 1.7.10 cauldron server, ima gonna be getting this alot!

    Also please consider my suggestion in your comments. Your plugin ALMOST works for forge mods, but some record nbt data for the items and its lost after the plugin saves the config or a restart is done.

  • _ForgeUser9275588 added the tags New Defect Jul 1, 2015

To post a comment, please login or register a new account.