From 16a0a3364a8156f86058409541ada361c29ce37d Mon Sep 17 00:00:00 2001 From: nossr50 Date: Mon, 27 Feb 2012 07:56:12 -0800 Subject: [PATCH] NPE fix for Bleed Simulation (hopefully) --- src/main/java/com/gmail/nossr50/skills/Swords.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/Swords.java b/src/main/java/com/gmail/nossr50/skills/Swords.java index 0db44cd83..7aa4bcdee 100644 --- a/src/main/java/com/gmail/nossr50/skills/Swords.java +++ b/src/main/java/com/gmail/nossr50/skills/Swords.java @@ -237,7 +237,7 @@ public class Swords //Bleed monsters/animals for(LivingEntity x : plugin.misc.bleedTracker) { - if(x.isDead()) + if(x == null || x.isDead()) { plugin.misc.addToBleedRemovalQue(x); continue;