luigidemasi opened a new issue, #12:
URL: https://github.com/apache/camel-kit/issues/12

   > Imported from 
[luigidemasi/camel-kit#16](https://github.com/luigidemasi/camel-kit/issues/16), 
opened by [luigidemasi](https://github.com/luigidemasi) on 2026-04-30.
   > Closed by 
[luigidemasi/camel-kit#32](https://github.com/luigidemasi/camel-kit/pull/32), 
merged on 2026-05-02.
   
   ---
   
   ## Description
   
   In `GraphRouteContextCommand`, `s.label().toLowerCase(Locale.ROOT)` can 
throw NPE when the label is null. This happens when `properties().get("uri")` 
or `properties().get("type")` returns null from the graph — for example, a 
processor node without a `type` property.
   
   **File:** 
`camel-kit-core/src/main/java/io/github/luigidemasi/camelkit/command/graph/GraphRouteContextCommand.java:66`
   
   ## Suggestion
   
   Add a null guard or default to empty string:
   ```java
   String l = s.label() != null ? s.label().toLowerCase(Locale.ROOT) : "";
   ```
   
   ## Context
   
   Flagged by CodeRabbit on PR luigidemasi/camel-kit#12 (comment 
luigidemasi/camel-kit#3160643196).


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to