Croway opened a new pull request, #23185: URL: https://github.com/apache/camel/pull/23185
## Summary - The JSpecify commit (CAMEL-22640) added `Objects.requireNonNull` to `JsseParameters.setCamelContext()`, which is correct per the `CamelContextAware` contract. - The JSSE factory beans in `camel-core-xml` unconditionally called `newInstance.setCamelContext(getCamelContext())`, passing `null` when no `CamelContext` was injected (e.g., Spring XML tests without a `<camelContext>` element). This now throws `NullPointerException`. - Added a `setCamelContextIfPresent()` helper in `AbstractJsseUtilFactoryBean` that only propagates the context when non-null, and replaced all 16 call sites across 8 factory beans. ## Test plan - [x] `SecureRandomParametersFactoryBeanTest` passes (was previously failing with NPE) - [x] `SSLContextParametersFactoryBeanTest` passes - [x] `KeyStoreParametersFactoryBeanTest` passes -- 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]
