mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-20 03:59:37 +00:00
Stop a potential NPE in Gas Gauges.
This commit is contained in:
1 parent
c97464649d
commit
2b7300bfa3
1 file changed
+1
-1
@@ -44,7 +44,7 @@ public class GuiGasGauge extends GuiGauge<Gas>
|
||||
return dummyType.getIcon();
|
||||
}
|
||||
|
||||
return infoHandler.getTank().getGas().getGas().getIcon();
|
||||
return (infoHandler.getTank() != null && infoHandler.getTank().getGas() != null && infoHandler.getTank().getGas().getGas() != null) ? infoHandler.getTank().getGas().getGas().getIcon() : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user