You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2008/10/10 14:46:10 UTC

svn commit: r703442 - /cxf/sandbox/dosgi/discovery/local/src/main/java/org/apache/cxf/dosgi/discovery/local/LocalDiscoveryService.java

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;
     }