Null check, for quick exit.

This commit is contained in:
KHobbits 2012-04-16 21:42:53 +01:00
parent 327a57de3c
commit 6919b52f61

View file

@ -194,7 +194,7 @@ public class EssentialsProtectEntityListener implements Listener
@EventHandler(priority = EventPriority.HIGHEST) @EventHandler(priority = EventPriority.HIGHEST)
public void onEntityExplode(final EntityExplodeEvent event) public void onEntityExplode(final EntityExplodeEvent event)
{ {
if (event.isCancelled()) if (event.isCancelled() || event.getEntity() == null)
{ {
return; return;
} }