reta commented on code in PR #2939:
URL: https://github.com/apache/cxf/pull/2939#discussion_r2913358526


##########
core/src/main/java/org/apache/cxf/endpoint/ClientImpl.java:
##########
@@ -511,11 +511,13 @@ public void onMessage(Message message) {
                             if (message.getContent(Exception.class) == null) {
                                 // handle the right response
                                 Message inMsg = 
message.getExchange().getInMessage();
-                                Map<String, Object> ctx = 
responseContext.get(Thread.currentThread());
-                                List<Object> resList = 
CastUtils.cast(inMsg.getContent(List.class));
-                                Object[] result = resList == null ? null : 
resList.toArray();
-                                callback.handleResponse(ctx, result);
-                                return;
+                                if (inMsg != null) {

Review Comment:
   Thanks for the fix @gnodet, it looks to me that the exchange is cleared 
prematurely, the inMsg ideally has to be available, I will try to look closely 
into it, 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]

Reply via email to