commit | 266eee54645e0e54c49ca2ddc2a5aaa5935c23f9 | [log] [tgz] |
---|---|---|
author | Marcel Offermans <marrs@apache.org> | Tue Dec 08 10:56:09 2009 +0000 |
committer | Marcel Offermans <marrs@apache.org> | Tue Dec 08 10:56:09 2009 +0000 |
tree | b86f80e464ba6acfbf4cf534034200eb7e30ea4b | |
parent | 5c270dd790a3d24e6ac6289ec5a84b415f5b759e [diff] |
bugfix, only add property if the value is not null git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@888320 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/dependencies/ResourceDependencyImpl.java b/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/dependencies/ResourceDependencyImpl.java index c3ede77..b993e97 100644 --- a/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/dependencies/ResourceDependencyImpl.java +++ b/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/dependencies/ResourceDependencyImpl.java
@@ -80,8 +80,11 @@ } } if (needsStarting) { - Properties props = new Properties(); - props.setProperty(Resource.FILTER, m_resourceFilter); + Properties props = null; + if (m_resourceFilter != null) { + props = new Properties(); + props.setProperty(Resource.FILTER, m_resourceFilter); + } m_registration = m_context.registerService(ResourceHandler.class.getName(), this, props); } }