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 22:01:55 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes ffab0b893 -> 8d56c8819


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/8d56c881
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/8d56c881
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/8d56c881

Branch: refs/heads/3.0.x-fixes
Commit: 8d56c88199211e4b72faa95f304e7d83433a44c0
Parents: ffab0b8
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 22:01:41 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/8d56c881/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