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:48:20 GMT
Repository: cxf
Updated Branches:
  refs/heads/master a5d111e31 -> 013fd951b


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

Branch: refs/heads/master
Commit: 013fd951b5e401fcd4ca2bf18b301b7404f35ade
Parents: a5d111e
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:06 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/013fd951/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 0551999..7a4e5c6 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
@@ -692,7 +692,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