From 746ed3f5d72ec711c5a54723801cb2dc196c318a Mon Sep 17 00:00:00 2001 From: RAWRwins254 Date: Thu, 23 Apr 2015 01:46:04 -0500 Subject: [PATCH] Fixing NPE from EnergyAcceptorWrapper.java not handling ticks that aren't related to a TileEntity. --- src/main/java/mekanism/common/base/EnergyAcceptorWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/mekanism/common/base/EnergyAcceptorWrapper.java b/src/main/java/mekanism/common/base/EnergyAcceptorWrapper.java index 1f5908860..bda1f64d1 100644 --- a/src/main/java/mekanism/common/base/EnergyAcceptorWrapper.java +++ b/src/main/java/mekanism/common/base/EnergyAcceptorWrapper.java @@ -18,7 +18,7 @@ public abstract class EnergyAcceptorWrapper implements IStrictEnergyAcceptor public static EnergyAcceptorWrapper get(TileEntity tileEntity) { - if(tileEntity.getWorldObj() == null) + if(tileEntity != null && tileEntity.getWorldObj() == null) { return null; }