chakravarthyBatna opened a new pull request, #27316:
URL: https://github.com/apache/camel/pull/27316

   # Description
   
   [CAMEL-25262](https://issues.apache.org/jira/browse/CAMEL-25262)
   
   Using `xtokenize` through the generic language expression (`language:` in 
YAML DSL, `.language("xtokenize", ...)` in Java DSL) failed at route startup 
with `NullPointerException: Cannot load from object array because "properties" 
is null`, because the namespaces option was read with `properties[4]`. It now 
uses the null-safe `property(...)` helper like the other options.
   
   This fixes problem 1 of the ticket only. Problem 2 (Choice compiling all 
branches) and the questions in the ticket are not changed.
   
   Tests: `XMLTokenizeLanguageNoPropertiesTest` (camel-stax) and 
`SplitTest.splitXtokenizeWithLanguage` (YAML DSL, the route from the ticket). 
Both fail with the NPE without the fix.
   
   # Checklist
   
   - [x] Targets `main`
   - [x] JIRA issue filed
   - [x] Meaningful commit subject and body
   - [ ] Ran `mvn clean install -DskipTests` from root (built the affected 
modules only; no generated changes)
   - [x] AI-assisted: commit has a `Co-authored-by` trailer
   
   _Prepared with Claude Code on behalf of chakravarthyBatna._
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


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