Null Check.

This commit is contained in:
AlgorithmX2 2014-04-28 13:19:41 -05:00
parent 62166f1e94
commit f6a132e19e

View file

@ -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() ) )