Don't remove breakers if a hub port hasn't been selected. This is a valid case if someone doesn't have hubs configured yet.

This commit is contained in:
mmilligan 2021-02-19 23:59:53 -06:00
parent 046c5e978b
commit 90002ab4d4

View File

@ -174,7 +174,7 @@ public class BreakerGroup {
if (subGroups != null) if (subGroups != null)
subGroups.removeIf(_g->!_g.removeInvalidGroups(_validPanels)); subGroups.removeIf(_g->!_g.removeInvalidGroups(_validPanels));
if (breakers != null) if (breakers != null)
breakers.removeIf(_b->(_b.getType() == null) || (_b.getType() == BreakerType.EMPTY) || (_b.isTandemBreaker() && (_b.getPort() < 1)) || !_validPanels.contains(_b.getPanel())); breakers.removeIf(_b->(_b.getType() == null) || (_b.getType() == BreakerType.EMPTY) || !_validPanels.contains(_b.getPanel()));
return CollectionUtils.isNotEmpty(subGroups) || CollectionUtils.isNotEmpty(breakers); return CollectionUtils.isNotEmpty(subGroups) || CollectionUtils.isNotEmpty(breakers);
} }