cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1392581 - /cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/java/org/apache/cxf/ws/discovery/internal/WSDiscoveryServiceImpl.java
Date Mon, 01 Oct 2012 20:44:26 GMT
Author: dkulp
Date: Mon Oct  1 20:44:26 2012
New Revision: 1392581

URL: http://svn.apache.org/viewvc?rev=1392581&view=rev
Log:
Don't set a null address

Modified:
    cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/java/org/apache/cxf/ws/discovery/internal/WSDiscoveryServiceImpl.java

Modified: cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/java/org/apache/cxf/ws/discovery/internal/WSDiscoveryServiceImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/java/org/apache/cxf/ws/discovery/internal/WSDiscoveryServiceImpl.java?rev=1392581&r1=1392580&r2=1392581&view=diff
==============================================================================
--- cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/java/org/apache/cxf/ws/discovery/internal/WSDiscoveryServiceImpl.java
(original)
+++ cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/java/org/apache/cxf/ws/discovery/internal/WSDiscoveryServiceImpl.java
Mon Oct  1 20:44:26 2012
@@ -87,7 +87,9 @@ public class WSDiscoveryServiceImpl impl
     
     public final synchronized void update(Map<String, Object> props) {
         String address = (String)props.get("org.apache.cxf.service.ws-discovery.address");
-        client.setAddress(address);
+        if (address != null) {
+            client.setAddress(address);
+        }
         if (udpEndpoint != null && !client.isAdHoc()) {
             udpEndpoint.stop();
             udpEndpoint = null;



Mime
View raw message