fix exception if hq empty
This commit is contained in:
@@ -284,8 +284,8 @@ public class PowerPlayController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void getMaxProfit(){
|
private void getMaxProfit(){
|
||||||
final Place hq = ModelFabric.get(hqSystem.get());
|
if (hqSystem.isPresent()){
|
||||||
if (hq != null){
|
final Place hq = ModelFabric.get(hqSystem.get());
|
||||||
Collection<Place> controlls = getControlSystems();
|
Collection<Place> controlls = getControlSystems();
|
||||||
result.clear();
|
result.clear();
|
||||||
Collection<PowerPlayAnalyzator.IntersectData> near = analyzator.getMaxProfit(hq, controlls);
|
Collection<PowerPlayAnalyzator.IntersectData> near = analyzator.getMaxProfit(hq, controlls);
|
||||||
|
|||||||
Reference in New Issue
Block a user