From 82e804cd1338fb422a6cfc0b8e51f4f1d33a4971 Mon Sep 17 00:00:00 2001
From: viliml <vilim.lendvaj@sk.t-com.hr>
Date: Wed, 21 May 2014 14:10:52 +0200
Subject: [PATCH] Update EntityRobotPicker.java

Prevents a crash if the pipe a robot is docked onto is broken.
---
 common/buildcraft/core/robots/EntityRobotPicker.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/buildcraft/core/robots/EntityRobotPicker.java b/common/buildcraft/core/robots/EntityRobotPicker.java
index 19b0df47..87be28ee 100755
--- a/common/buildcraft/core/robots/EntityRobotPicker.java
+++ b/common/buildcraft/core/robots/EntityRobotPicker.java
@@ -96,7 +96,7 @@ public class EntityRobotPicker extends EntityRobot implements IInventory {
 						.getTileEntity(dockingStation.x, dockingStation.y,
 								dockingStation.z);
 
-				if (pipe.pipe.transport instanceof PipeTransportItems) {
+				if (pipe != null && pipe.pipe.transport instanceof PipeTransportItems) {
 					if (unloadTracker.markTimeIfDelay(worldObj)) {
 						for (int i = 0; i < inv.length; ++i) {
 							if (inv[i] != null) {