Merge pull request #35 from guineawheek/fix_npe

fix NPE crash with recent code change
This commit is contained in:
Martin Robertz authored and GitHub committed 2022-11-02 18:03:07 +01:00
commit 6da8cdf831
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