Agent: Skip branching in case of empty template inputs;

This commit is contained in:
extio-de
2025-06-26 00:19:35 +02:00
parent c3fd40f4a7
commit 38138b177b
2 changed files with 2 additions and 2 deletions

View File

@@ -220,7 +220,7 @@ public interface BaseAgent {
branchedEntriesMinCntValues = branchedEntriesMinCntValues == 0 ? entry.getValue().size() : Math.min(branchedEntriesMinCntValues, entry.getValue().size());
}
}
if (!branchedEntries.isEmpty()) {
if (!branchedEntries.isEmpty() && branchedEntriesMinCntValues > 0) {
final var result = new ArrayList<Split>();
for (int i = 0; i < branchedEntriesMinCntValues; i++) {