summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-04-16 21:42:53 +0100
committerKHobbits <rob@khobbits.co.uk>2012-04-16 21:42:53 +0100
commitfe937ec5b2de6b8b18d642699d632a3b6e18c20b (patch)
tree7b0aa77f1ba8f689f2f6e208faaa3fdba8decfee
parent9df2413d20ba068e55f7df7238478ec2c75eef4f (diff)
downloadEssentials-fe937ec5b2de6b8b18d642699d632a3b6e18c20b.tar
Essentials-fe937ec5b2de6b8b18d642699d632a3b6e18c20b.tar.gz
Essentials-fe937ec5b2de6b8b18d642699d632a3b6e18c20b.tar.lz
Essentials-fe937ec5b2de6b8b18d642699d632a3b6e18c20b.tar.xz
Essentials-fe937ec5b2de6b8b18d642699d632a3b6e18c20b.zip
Null check, for quick exit.
-rw-r--r--EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java
index 1868e20c1..7e558eb81 100644
--- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java
+++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java
@@ -194,7 +194,7 @@ public class EssentialsProtectEntityListener implements Listener
@EventHandler(priority = EventPriority.HIGHEST)
public void onEntityExplode(final EntityExplodeEvent event)
{
- if (event.isCancelled())
+ if (event.isCancelled() || event.getEntity() == null)
{
return;
}