Fix #262 crash from squeezer

This commit is contained in:
mezz committed 2014-10-08 14:49:42 -07:00
1 parent 5ce3b61f03
commit 9a2dd32293
1 file changed
+1 -1
@@ -65,7 +65,7 @@ public class TankWidget extends Widget {
return;
FluidStack contents = getTank().getFluid();
if (contents == null || contents.amount <= 0)
if (contents == null || contents.amount <= 0 || contents.getFluid() == null)
return;
IIcon liquidIcon = contents.getFluid().getIcon(contents);
if (liquidIcon == null)