fix validation logic of zoneGroupConfiguration after testing

This commit is contained in:
dshvaika 2025-09-16 10:37:19 +03:00
parent ad0b6017e6
commit c678634344

View File

@ -53,6 +53,9 @@ public class ZoneGroupConfiguration {
if (reportStrategy == null) {
throw new IllegalArgumentException("Report strategy must be specified for '" + name + "' zone group!");
}
if (hasDynamicSource()) {
refDynamicSourceConfiguration.validate();
}
if (!createRelationsWithMatchedZones) {
return;
}
@ -62,9 +65,6 @@ public class ZoneGroupConfiguration {
if (direction == null) {
throw new IllegalArgumentException("Relation direction must be specified for '" + name + "' zone group!");
}
if (hasDynamicSource()) {
refDynamicSourceConfiguration.validate();
}
}
public boolean hasDynamicSource() {