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