cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: One more minor update to AbstractClient
Date Wed, 11 Feb 2015 21:59:45 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 1b91b6e63 -> 74bff9b1d


One more minor update to AbstractClient


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/74bff9b1
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/74bff9b1
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/74bff9b1

Branch: refs/heads/master
Commit: 74bff9b1dd1eea96a02ce11e2d32efaed0d7cd65
Parents: 1b91b6e
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Wed Feb 11 21:59:28 2015 +0000
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Wed Feb 11 21:59:28 2015 +0000

----------------------------------------------------------------------
 .../src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/74bff9b1/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
----------------------------------------------------------------------
diff --git a/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java b/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
index 62d725b..56f6318 100644
--- a/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
+++ b/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
@@ -1064,7 +1064,7 @@ public abstract class AbstractClient implements Client {
 
         public void handleMessage(Message message) throws Fault {
             Exception ex = message.getContent(Exception.class);
-            if (!message.getExchange().isSynchronous()) {
+            if (!message.getExchange().isSynchronous() && ex != null) {
                 //TODO: make sure it works with the failover feature
                 JaxrsClientCallback<?> cb = message.getExchange().get(JaxrsClientCallback.class);
                 cb.handleException(message, new ProcessingException(ex));


Mime
View raw message