From f4a789b48a65171796d6a572253e02ff1538a591 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Fri, 22 Jul 2011 23:04:57 -0400 Subject: [PATCH] Fixed NPE in BlockFurnace. --- src/main/java/net/minecraft/server/BlockFurnace.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/minecraft/server/BlockFurnace.java b/src/main/java/net/minecraft/server/BlockFurnace.java index e5cae3d2bd..ab9f6bd960 100644 --- a/src/main/java/net/minecraft/server/BlockFurnace.java +++ b/src/main/java/net/minecraft/server/BlockFurnace.java @@ -112,6 +112,7 @@ public class BlockFurnace extends BlockContainer { if (!c) { TileEntityFurnace tileentityfurnace = (TileEntityFurnace) world.getTileEntity(i, j, k); + if (tileentityfurnace == null) return; // CraftBukkit for (int l = 0; l < tileentityfurnace.getSize(); ++l) { ItemStack itemstack = tileentityfurnace.getItem(l);