This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-3.7.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.7.x by this push:
new 2f0f3a7 CAMEL-16135: Fix NPE in camel-spring-boot with multicast
based EIPs setting up error handling.
2f0f3a7 is described below
commit 2f0f3a7c0b727242dbf34ce2b17a122dad4496dc
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Feb 3 13:24:51 2021 +0100
CAMEL-16135: Fix NPE in camel-spring-boot with multicast based EIPs setting
up error handling.
---
.../src/main/java/org/apache/camel/reifier/RouteReifier.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/RouteReifier.java
b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/RouteReifier.java
index 7d5e068..ca5fb63 100644
---
a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/RouteReifier.java
+++
b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/RouteReifier.java
@@ -331,8 +331,10 @@ public class RouteReifier extends
ProcessorReifier<RouteDefinition> {
builder, null);
prepareErrorHandlerAware(route, errorHandler);
- // okay route has been created from the model, then the model is no
longer needed and we can de-reference
- route.clearRouteModel();
+ camelContext.adapt(ExtendedCamelContext.class).addBootstrap(() -> {
+ // okay route has been created from the model, then the model is
no longer needed and we can de-reference
+ route.clearRouteModel();
+ });
return route;
}