fix silly NPE crash

This commit is contained in:
Guinea Wheek authored and asdflj committed 2022-11-07 19:17:20 +08:00
1 parent d29f035139
commit 89068c4dff
1 file changed
+4 -1
@@ -201,7 +201,10 @@ public class FluidConvertingInventoryAdaptor extends InventoryAdaptor {
}
if (p2p == invFluidsP2P || p2p == null)
continue;
tankInfos.add(Ae2Reflect.getP2PLiquidTarget(p2p).getTankInfo(p2p.getSide().getOpposite()));
IFluidHandler target = Ae2Reflect.getP2PLiquidTarget(p2p);
if (target == null)
continue;
tankInfos.add(target.getTankInfo(p2p.getSide().getOpposite()));
}
} catch (GridAccessException e) {
// ignore