You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/02/23 18:10:26 UTC

[GitHub] [camel] davsclaus commented on a change in pull request #5107: Kamelet: Ensure camel route input is not null.

davsclaus commented on a change in pull request #5107:
URL: https://github.com/apache/camel/pull/5107#discussion_r581271312



##########
File path: components/camel-kamelet/src/main/java/org/apache/camel/component/kamelet/Kamelet.java
##########
@@ -116,6 +116,10 @@ public static RouteDefinition templateToRoute(RouteTemplateDefinition in, Map<St
         RouteDefinition def = in.asRouteDefinition();
         def.setId(rid);
 
+        if (def.getInput() == null) {
+            throw new IllegalArgumentException("Camel route " + rid + " input does not exist.");

Review comment:
       Yes this is fine




----------------------------------------------------------------
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:
users@infra.apache.org