reta commented on code in PR #2140:
URL: https://github.com/apache/cxf/pull/2140#discussion_r1832874426
##########
core/src/main/java/org/apache/cxf/endpoint/ClientImpl.java:
##########
@@ -539,7 +539,7 @@ public void onMessage(Message message) {
return processResult(message, exchange, oi, resContext);
} finally {
//ensure ResponseContext has HTTP RESPONSE CODE
- if (null != exchange) {
+ if (null != exchange && null != responseContext) {
Review Comment:
Thank you @ctabin , could you please guard the
`setResponseContext(resContext);` instead?
```
if (null != responseContext) {
setResponseContext(resContext);
}
```
The reason is that is should be fine to fill up the `resContext` (which is
attached to the current message). Thank you
--
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]