lburgazzoli opened a new issue #236: Webhook endpoint may not be fully 
initialized when the route policy is applied
URL: https://github.com/apache/camel-k-runtime/issues/236
 
 
   The WebHookRoutePolicy is triggered when a route is 
[initialized](https://github.com/apache/camel-k-runtime/blob/master/camel-k-runtime-webhook/src/main/java/org/apache/camel/k/webhook/WebhookRoutePolicyFactory.java#L70)
 but at this point the underlying web-hook endpojnt may not be fully 
initialized as the initialization happens on 
[WebhookEndpoint::doStart](https://github.com/apache/camel/blob/master/components/camel-webhook/src/main/java/org/apache/camel/component/webhook/WebhookEndpoint.java#L74)
 which could lead to a NPE 
[here](https://github.com/apache/camel-k-runtime/blob/master/camel-k-runtime-webhook/src/main/java/org/apache/camel/k/webhook/WebhookRoutePolicyFactory.java#L84)
 and 
[here](https://github.com/apache/camel-k-runtime/blob/master/camel-k-runtime-webhook/src/main/java/org/apache/camel/k/webhook/WebhookRoutePolicyFactory.java#L91)
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to