chore: Bump version to 1.6.18 and fix branch agent retrieval logic in AgentExecutorService
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -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.6.17</version>
|
<version>1.6.18</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>21</java.version>
|
<java.version>21</java.version>
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ public class AgentExecutorService implements InitializingBean, DisposableBean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!branchContext.isError() && branchContext.getNextAgent() != null) {
|
if (!branchContext.isError() && branchContext.getNextAgent() != null) {
|
||||||
final var branchAgent = context.getAgents().get(branchContext.getNextAgent().name());
|
final var branchAgent = branchContext.getAgents().get(branchContext.getNextAgent().name());
|
||||||
if (branchAgent == null) {
|
if (branchAgent == null) {
|
||||||
throw new IllegalArgumentException("Agent not found: " + branchContext.getNextAgent().name());
|
throw new IllegalArgumentException("Agent not found: " + branchContext.getNextAgent().name());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user