mung3r / ecoCreature

PvM/E Rewards
http://forums.bukkit.org/threads/29538
GNU Lesser General Public License v3.0
7 stars 12 forks source link

mcMMO NPE on EntityDeathEvent #83

Closed mung3r closed 11 years ago

mung3r commented 12 years ago

As reported by erdrickk:

2012-09-22 13:04:46 [SEVERE] Could not pass event EntityDeathEvent to ecoCreature
org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341)
    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.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:299)
    at net.minecraft.server.EntityBlaze.dropDeathLoot(EntityBlaze.java:135)
    at net.minecraft.server.EntityLiving.die(EntityLiving.java:767)
    at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:663)
    at net.minecraft.server.EntityMonster.damageEntity(EntityMonster.java:38)
    at net.minecraft.server.EntityHuman.attack(EntityHuman.java:762)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1019)
    at net.minecraft.server.Packet7UseEntity.handle(SourceFile:36)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:282)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:577)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
Caused by: java.lang.NullPointerException
    at se.crafted.chrisb.ecoCreature.rewards.parties.McMMOParty.getPlayers(McMMOParty.java:21)
    at se.crafted.chrisb.ecoCreature.rewards.WorldSettings.getParty(WorldSettings.java:405)
    at se.crafted.chrisb.ecoCreature.events.handlers.EntityDeathEventHandler.getRewardEvents(EntityDeathEventHandler.java:46)
    at se.crafted.chrisb.ecoCreature.events.handlers.EntityDeathEventHandler.getRewardEvents(EntityDeathEventHandler.java:30)
    at se.crafted.chrisb.ecoCreature.events.listeners.EntityDeathEventListener.onEntityDeath(EntityDeathEventListener.java:38)
    at sun.reflect.GeneratedMethodAccessor307.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:339)
    ... 20 more