cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Preventing an unexpected NPE in AbstractHttpDestination in the MTOM test
Date Thu, 30 Apr 2015 09:49:17 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes e2b40f680 -> fa6d04a44


Preventing an unexpected NPE in AbstractHttpDestination in the MTOM test


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

Branch: refs/heads/3.0.x-fixes
Commit: fa6d04a44b35dd8982b873bc01822c0332f72555
Parents: e2b40f6
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Thu Apr 30 10:48:06 2015 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Thu Apr 30 10:48:44 2015 +0100

----------------------------------------------------------------------
 .../org/apache/cxf/transport/http/AbstractHTTPDestination.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/fa6d04a4/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
----------------------------------------------------------------------
diff --git a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
index d994634..5983e42 100644
--- a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
+++ b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
@@ -685,7 +685,9 @@ public abstract class AbstractHTTPDestination
     }
 
     private boolean isResponseRedirected(Message outMessage) {
-        return Boolean.TRUE.equals(outMessage.getExchange().get(REQUEST_REDIRECTED));
+        Exchange exchange = outMessage.getExchange();
+        return exchange != null 
+               && Boolean.TRUE.equals(exchange.get(REQUEST_REDIRECTED));
     }
 
     /**


Mime
View raw message