tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject svn commit: r830803 - /tuscany/java/sca/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/remoteserviceadmin/impl/RemoteServiceAdminImpl.java
Date Thu, 29 Oct 2009 00:06:45 GMT
Author: rfeng
Date: Thu Oct 29 00:06:45 2009
New Revision: 830803

URL: http://svn.apache.org/viewvc?rev=830803&view=rev
Log:
Add null check

Modified:
    tuscany/java/sca/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/remoteserviceadmin/impl/RemoteServiceAdminImpl.java

Modified: tuscany/java/sca/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/remoteserviceadmin/impl/RemoteServiceAdminImpl.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/remoteserviceadmin/impl/RemoteServiceAdminImpl.java?rev=830803&r1=830802&r2=830803&view=diff
==============================================================================
--- tuscany/java/sca/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/remoteserviceadmin/impl/RemoteServiceAdminImpl.java
(original)
+++ tuscany/java/sca/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/remoteserviceadmin/impl/RemoteServiceAdminImpl.java
Thu Oct 29 00:06:45 2009
@@ -263,6 +263,10 @@
     }
 
     public synchronized void updated(Dictionary props) throws ConfigurationException {
+        if (props == null) {
+            // It can be null in Apache Felix
+            return;
+        }
         String domainRegistry = (String)props.get("org.osgi.sca.domain.registry");
         if (domainRegistry != null) {
             exporter.setDomainRegistry(domainRegistry);



Mime
View raw message