davsclaus opened a new pull request, #30020: URL: https://github.com/apache/camel/pull/30020
JIRA: [CAMEL-26929](https://issues.apache.org/jira/browse/CAMEL-26929), item 7 (first bullet). Since the consoles are records (CAMEL-24565), the transformers console leaves out its `transformers` list when an integration has none. `camel get transformer` then skipped each such integration with a warning: ``` WARN: Skipped the integration with pid 31685: cannot read its status (NullPointerException: Cannot invoke "org.apache.camel.util.json.JsonArray.size()" because "array" is null) ``` `ListTransformer` now treats a missing list as no transformers. I checked the other camel get commands the same way: all 36 subcommands, with and without `--json`, against a running integration that has no transformers, beans, errors, inflight or blocked exchanges. Only `get transformer` failed. Tests: `ListTransformerTest.testIntegrationWithoutTransformers` (fails on main); the fixtures are now built from `TransformerConsole`'s records, as #29908 did for consumers and producers, so a renamed key breaks the test. The 276 tests of the process commands are green. _Claude Code on behalf of davsclaus_ 🤖 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]
