diff --git a/src/main/java/forestry/core/gadgets/TileAnalyzer.java b/src/main/java/forestry/core/gadgets/TileAnalyzer.java index 0262e1c7f..56d4c05c9 100755 --- a/src/main/java/forestry/core/gadgets/TileAnalyzer.java +++ b/src/main/java/forestry/core/gadgets/TileAnalyzer.java @@ -238,12 +238,14 @@ public class TileAnalyzer extends TilePowered implements ISidedInventory, ILiqui // Look for bees in input slots. IInvSlot slot = getInputSlot(); - ItemStack inputStack = slot.getStackInSlot(); - setInventorySlotContents(SLOT_ANALYZE, inputStack); - slot.setStackInSlot(null); - resourceTank.drain(HONEY_REQUIRED, true); - analyzeTime = TIME_TO_ANALYZE; - sendNetworkUpdate(); + if (slot != null) { + ItemStack inputStack = slot.getStackInSlot(); + setInventorySlotContents(SLOT_ANALYZE, inputStack); + slot.setStackInSlot(null); + resourceTank.drain(HONEY_REQUIRED, true); + analyzeTime = TIME_TO_ANALYZE; + sendNetworkUpdate(); + } return true; }