cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1294827 - /cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/impl/MAPAggregatorImpl.java
Date Tue, 28 Feb 2012 20:53:42 GMT
Author: dkulp
Date: Tue Feb 28 20:53:41 2012
New Revision: 1294827

URL: http://svn.apache.org/viewvc?rev=1294827&view=rev
Log:
Avoid an NPE

Modified:
    cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/impl/MAPAggregatorImpl.java

Modified: cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/impl/MAPAggregatorImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/impl/MAPAggregatorImpl.java?rev=1294827&r1=1294826&r2=1294827&view=diff
==============================================================================
--- cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/impl/MAPAggregatorImpl.java
(original)
+++ cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/impl/MAPAggregatorImpl.java
Tue Feb 28 20:53:41 2012
@@ -537,7 +537,8 @@ public class MAPAggregatorImpl extends M
                                                           Names.HEADER_REQUIRED_NAME));
                 }
             }
-            if (MessageUtils.isPartialResponse(message)) {
+            if (MessageUtils.isPartialResponse(message) 
+                && message.getExchange().getOutMessage() != null) {
                 // marked as a partial response, let's see if it really is
                 MessageInfo min = message.get(MessageInfo.class);
                 MessageInfo mout = message.getExchange().getOutMessage().get(MessageInfo.class);



Mime
View raw message