From f6a132e19ece597a6c68031c6643fd0df4ac4a64 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Mon, 28 Apr 2014 13:19:41 -0500 Subject: [PATCH] Null Check. --- parts/CableBusContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parts/CableBusContainer.java b/parts/CableBusContainer.java index 04f76723..0488c985 100644 --- a/parts/CableBusContainer.java +++ b/parts/CableBusContainer.java @@ -244,7 +244,7 @@ public class CableBusContainer implements AEMultiTile, ICableBusContainer partChanged(); return ForgeDirection.UNKNOWN; } - else if ( !(bp instanceof IPartCable) && side != ForgeDirection.UNKNOWN ) + else if ( bp != null && !(bp instanceof IPartCable) && side != ForgeDirection.UNKNOWN ) { IPart cable = getPart( ForgeDirection.UNKNOWN ); if ( cable != null && !bp.canBePlacedOn( ((IPartCable) cable).supportsBuses() ) )