prevent crash if the interface terminal is broken while looking at it.

This commit is contained in:
AlgorithmX2 2014-08-22 13:50:02 -05:00
parent 9510a84c56
commit 555bb66a70

View file

@ -212,7 +212,7 @@ public class ContainerInterfaceTerminal extends AEBaseContainer
if ( host != null )
{
IGridNode agn = host.getActionableNode();
if ( agn.isActive() )
if ( agn != null && agn.isActive() )
{
for (IGridNode gn : g.getMachines( TileInterface.class ))
{
@ -312,7 +312,7 @@ public class ContainerInterfaceTerminal extends AEBaseContainer
if ( host != null )
{
IGridNode agn = host.getActionableNode();
if ( agn.isActive() )
if ( agn != null && agn.isActive() )
{
for (IGridNode gn : g.getMachines( TileInterface.class ))
{