diff --git a/integration/modules/MJ6.java b/integration/modules/MJ6.java index ed61940c..71e87cf4 100644 --- a/integration/modules/MJ6.java +++ b/integration/modules/MJ6.java @@ -41,7 +41,11 @@ public class MJ6 extends BaseModule implements IMJ6 if ( te instanceof IPowerReceptor ) { final IPowerReceptor recp = (IPowerReceptor) te; + if ( recp == null ) + return null; final PowerReceiver ph = recp.getPowerReceiver( side ); + if ( ph == null ) + return null; return new IBatteryObject() {