diff --git a/src/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java b/src/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java index 1558ab08..32a2df4c 100644 --- a/src/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java +++ b/src/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java @@ -186,7 +186,7 @@ public void onEntityExplode(EntityExplodeEvent event) { return; } - if (plugin.useRegions) { + if (plugin.useRegions && event.getEntity() != null) { Vector pt = toVector(event.getEntity().getLocation()); if (!plugin.regionManager.getApplicableRegions(pt).allowsTNT()) {