cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1226972 - /cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java
Date Tue, 03 Jan 2012 22:22:57 GMT
Author: dkulp
Date: Tue Jan  3 22:22:56 2012
New Revision: 1226972

URL: http://svn.apache.org/viewvc?rev=1226972&view=rev
Log:
Add a NPE guard to SoapTransportFactory

Modified:
    cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java

Modified: cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java?rev=1226972&r1=1226971&r2=1226972&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java
(original)
+++ cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java
Tue Jan  3 22:22:56 2012
@@ -202,7 +202,7 @@ public class SoapTransportFactory extend
 
 
     public Conduit getConduit(EndpointInfo ei, EndpointReferenceType target) throws IOException
{
-        String address = target.getAddress().getValue();
+        String address = target == null ? ei.getAddress() : target.getAddress().getValue();
         if (!StringUtils.isEmpty(address) && address.startsWith("soap.tcp://")) {
             //TODO - examine policies and stuff to look for the sun tcp policies
             return new TCPConduit(ei);



Mime
View raw message