Stop a potential NPE in Gas Gauges.
This commit is contained in:
parent
c97464649d
commit
2b7300bfa3
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ public class GuiGasGauge extends GuiGauge<Gas>
|
||||||
return dummyType.getIcon();
|
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
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue