This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch openapi
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/openapi by this push:
new 6e87a53a145 camel-core: Fix potential NPE when stopping routes
6e87a53a145 is described below
commit 6e87a53a14555a05cc1fd93bbccb7c6f0daaa914
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Oct 11 15:54:33 2024 +0200
camel-core: Fix potential NPE when stopping routes
---
.../main/java/org/apache/camel/impl/engine/AbstractCamelContext.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
index e4ba371ffc1..c8195968755 100644
---
a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
+++
b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
@@ -1064,7 +1064,7 @@ public abstract class AbstractCamelContext extends
BaseService
Route route = order.getRoute();
var status = controller.getRouteStatus(route.getRouteId());
boolean stopped = status == null || status.isStopped();
- if (!stopped) {Fi
+ if (!stopped) {
stopRoute(route.getRouteId(), LoggingLevel.DEBUG);
}
}