From d68dfe2a32717dab29743269fc5d834f9f00370d Mon Sep 17 00:00:00 2001 From: GJ Date: Fri, 1 Feb 2013 15:56:23 -0500 Subject: [PATCH] ACTUALLY fix the NPE this time. --- src/main/java/com/gmail/nossr50/util/Misc.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/util/Misc.java b/src/main/java/com/gmail/nossr50/util/Misc.java index 3feab2821..5b8493c75 100644 --- a/src/main/java/com/gmail/nossr50/util/Misc.java +++ b/src/main/java/com/gmail/nossr50/util/Misc.java @@ -344,7 +344,7 @@ public final class Misc { */ public static void dropItem(Location location, ItemStack itemStack) { - if (itemStack.getType() == null || itemStack.getType() == Material.AIR) { + if (itemStack == null || itemStack.getType() == Material.AIR) { return; }