Add null check

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@830803 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
rfeng 2009-10-29 00:06:45 +00:00
parent 15815e0452
commit 72551516cb

View file

@ -263,6 +263,10 @@ public class RemoteServiceAdminImpl implements RemoteServiceAdmin, ManagedServic
}
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);