cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r703442 - /cxf/sandbox/dosgi/discovery/local/src/main/java/org/apache/cxf/dosgi/discovery/local/LocalDiscoveryService.java
Date Fri, 10 Oct 2008 12:46:10 GMT
Author: sergeyb
Date: Fri Oct 10 05:46:10 2008
New Revision: 703442

URL: http://svn.apache.org/viewvc?rev=703442&view=rev
Log:
DOSGI : minor update to LocalDiscoveryService to avoid NPE

Modified:
    cxf/sandbox/dosgi/discovery/local/src/main/java/org/apache/cxf/dosgi/discovery/local/LocalDiscoveryService.java

Modified: cxf/sandbox/dosgi/discovery/local/src/main/java/org/apache/cxf/dosgi/discovery/local/LocalDiscoveryService.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/dosgi/discovery/local/src/main/java/org/apache/cxf/dosgi/discovery/local/LocalDiscoveryService.java?rev=703442&r1=703441&r2=703442&view=diff
==============================================================================
--- cxf/sandbox/dosgi/discovery/local/src/main/java/org/apache/cxf/dosgi/discovery/local/LocalDiscoveryService.java
(original)
+++ cxf/sandbox/dosgi/discovery/local/src/main/java/org/apache/cxf/dosgi/discovery/local/LocalDiscoveryService.java
Fri Oct 10 05:46:10 2008
@@ -406,7 +406,11 @@
     private Dictionary<String, Object> getServiceProperties(String interfaceName,
                                                             ServiceEndpointDescription sd)
{
         Dictionary<String, Object> d = new Hashtable<String, Object>(sd.getProperties());
-        d.put(Constants.OBJECTCLASS, getInterfaceNames(sd, interfaceName));
+        
+        String[] interfaceNames = getInterfaceNames(sd, interfaceName);
+        if (interfaceNames != null) {
+            d.put(Constants.OBJECTCLASS, interfaceNames);
+        }
         return d;
     }
     



Mime
View raw message