jameshilliard commented on pull request #5107: URL: https://github.com/apache/camel/pull/5107#issuecomment-782743758
> I wonder what example / use-case you had that could cause this NPE? I was messing around with route templates and hit this error, here's the reproducer: ```java diff --git a/components/camel-kamelet/src/test/java/org/apache/camel/component/kamelet/KameletRouteTest.java b/components/camel-kamelet/src/test/java/org/apache/camel/component/kamelet/KameletRouteTest.java index 15c0cc853fa..43a02038760 100644 --- a/components/camel-kamelet/src/test/java/org/apache/camel/component/kamelet/KameletRouteTest.java +++ b/components/camel-kamelet/src/test/java/org/apache/camel/component/kamelet/KameletRouteTest.java @@ -56,6 +56,7 @@ public class KameletRouteTest extends CamelTestSupport { public void configure() throws Exception { routeTemplate("echo") .templateParameter("prefix") + .asRouteDefinition() .from("kamelet:source") .setBody().simple("{{prefix}}-${body}"); ``` ---------------------------------------------------------------- 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