You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jiri Ondrusek (Jira)" <ji...@apache.org> on 2025/01/29 09:47:00 UTC

[jira] [Created] (CAMEL-21676) Kamelet - loading a xml kamelet throws NPE

Jiri Ondrusek created CAMEL-21676:
-------------------------------------

             Summary: Kamelet - loading a xml kamelet throws NPE
                 Key: CAMEL-21676
                 URL: https://issues.apache.org/jira/browse/CAMEL-21676
             Project: Camel
          Issue Type: Task
          Components: camel-kamelet
    Affects Versions: 4.10.0
            Reporter: Jiri Ondrusek


When adapting the latest bits of Camel 4.10 by camel-quarkus, NPE error was discovered when running [kamelet|https://github.com/apache/camel-quarkus/tree/camel-main/integration-tests/kamelet] tests.

Here is a failure in the nightly build - [CI|https://github.com/apache/camel-quarkus/actions/runs/13021989808/job/36325135678]

Problem seems to be happening when kamelet is loaded as {*}XML{*}. Its route definition is not initialized properly and causes a NPE in
{code:java}
org.apache.camel.component.kamelet.Kamelet.templateToRoute(Kamelet.java:209){code}
If the kamelet it rewriten into *YAML,* error goes away.

I think that error was introduced by this [commit|https://github.com/apache/camel/commit/43f90a5902d551ced4d77ca36183d8efbabe1fdd].



--
This message was sent by Atlassian Jira
(v8.20.10#820010)