Archived
0

fix exception if hq empty

This commit is contained in:
iMoHax
2016-12-02 16:05:25 +03:00
parent 5edae41336
commit b982685697

View File

@@ -284,8 +284,8 @@ public class PowerPlayController {
}
private void getMaxProfit(){
final Place hq = ModelFabric.get(hqSystem.get());
if (hq != null){
if (hqSystem.isPresent()){
final Place hq = ModelFabric.get(hqSystem.get());
Collection<Place> controlls = getControlSystems();
result.clear();
Collection<PowerPlayAnalyzator.IntersectData> near = analyzator.getMaxProfit(hq, controlls);