From f0ad27c5f309d84859dd1e4af24ae51538883e64 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Thu, 22 May 2014 09:20:59 -0500 Subject: [PATCH] Fixed http://openeye.openmods.info/crashes/64eb336042aeeec45dfd13edd30de8a6 Fixed http://openeye.openmods.info/crashes/bbefcf763be5224e4667519cf6c95933 --- integration/modules/MJ6.java | 4 ++++ 1 file changed, 4 insertions(+) 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() {