From d1fcd6958faac88d3da65211e826ba50116f2a9d Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Mon, 20 Jan 2014 22:38:20 +0100 Subject: [PATCH] Check if brewingStand == null Fixes #1804 --- .../com/gmail/nossr50/runnables/skills/AlchemyBrewTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/runnables/skills/AlchemyBrewTask.java b/src/main/java/com/gmail/nossr50/runnables/skills/AlchemyBrewTask.java index 54da7d9e9..642de0941 100644 --- a/src/main/java/com/gmail/nossr50/runnables/skills/AlchemyBrewTask.java +++ b/src/main/java/com/gmail/nossr50/runnables/skills/AlchemyBrewTask.java @@ -57,7 +57,7 @@ public class AlchemyBrewTask extends BukkitRunnable { @Override public void run() { - if (player == null || !player.isValid() || brewingStand.getType() != Material.BREWING_STAND) { + if (player == null || !player.isValid() || brewingStand == null || brewingStand.getType() != Material.BREWING_STAND) { if (Alchemy.brewingStandMap.containsKey(brewingStand)) { Alchemy.brewingStandMap.remove(brewingStand); }