baconberry opened a new pull request, #16497: URL: https://github.com/apache/camel/pull/16497
# Description When performing raw requests using the `raw` endpoint in the salesforce component, if there's an error without body the `DefaultRawClient` is unable to create a `SalesforceException` because it throws an `NullPointerException`, I see other internal clients implementations, and there the null response body is handled correctly. [This following branch can be used to see the current wrong behavior.](https://github.com/baconberry/camel/blob/reproduce-salesforce-raw-client-npe/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/RawPayloadTest.java) # Target - [X] I checked that the commit is targeting the correct branch (note that Camel 3 uses `camel-3.x`, whereas Camel 4 uses the `main` branch) # Tracking - [X] If this is a large change, bug fix, or code improvement, I checked there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for the change (usually before you start working on it). Is this trivial enough? # Apache Camel coding standards and style - [X] I checked that each commit in the pull request has a meaningful subject line and body. - [X] I have run `mvn clean install -DskipTests` locally from root folder and I have committed all auto-generated changes. -- 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: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org