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

@@ -4,7 +4,7 @@
<artifactId>lm-lib</artifactId> <artifactId>lm-lib</artifactId>
<groupId>de.extio</groupId> <groupId>de.extio</groupId>
<name>lm-lib</name> <name>lm-lib</name>
<version>1.5.6</version> <version>1.5.7</version>
<properties> <properties>
<java.version>21</java.version> <java.version>21</java.version>

View File

@@ -220,7 +220,7 @@ public interface BaseAgent {
branchedEntriesMinCntValues = branchedEntriesMinCntValues == 0 ? entry.getValue().size() : Math.min(branchedEntriesMinCntValues, entry.getValue().size()); 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>(); final var result = new ArrayList<Split>();
for (int i = 0; i < branchedEntriesMinCntValues; i++) { for (int i = 0; i < branchedEntriesMinCntValues; i++) {