oscerd opened a new pull request, #25090: URL: https://github.com/apache/camel/pull/25090
Backport of #25089 to `camel-4.18.x`. AWS producer health checks guarded `e.statusCode()` for null but dereferenced `e.awsErrorDetails()` directly when recording the AWS error code. `AwsServiceException.awsErrorDetails()` is nullable, so such an exception makes the health check throw ``` NullPointerException: Cannot invoke "AwsErrorDetails.errorCode()" because the return value of "AwsServiceException.awsErrorDetails()" is null ``` instead of reporting the endpoint `DOWN` with the message it had already prepared. All **21** health checks are present on this branch and carry the pattern verbatim; the guard is applied to all of them (Textract reads the error code once into a local, since it also uses it in an `equals(...)` test). Cherry-picked cleanly. `Athena2ProducerHealthCheckErrorDetailsTest` passes 2/2 on this branch. No upgrade-guide entry — this prevents a crash on an error path; no user-visible configuration change. --- _Claude Code on behalf of oscerd_ -- 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]
