Malikk / Shield

Shield - A collection of common Bukkit protection plugin API
http://dev.bukkit.org/server-mods/shieldapi/
3 stars 3 forks source link

NPE when checking if a player is in a wg region #1

Closed fletchto99 closed 12 years ago

fletchto99 commented 12 years ago

Caused by: java.lang.NullPointerException at com.malikk.shield.plugins.ProtectionManager.isInRegion(ProtectionManager.java:83) at com.malikk.shield.ShieldAPIManager.isInRegion(ShieldAPIManager.java:96) at org.monstercraft.explode.listeners.MonsterExplodeListener.onEntityDeath(MonsterExplodeListener.java:72) at sun.reflect.GeneratedMethodAccessor241.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330)

Using WG build 642 (http://build.sk89q.com/job/WorldGuard/642/)

Malikk commented 12 years ago

Double check that it isn't being caused by your listener class, I'm not having any issues with this.

fletchto99 commented 12 years ago

Perhaps a plugin was setting the events location to null. I will double check this, I know it isn't caused by my plugin. I will also add a null check into my plugin checking the players location.