felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r888320 - /felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/dependencies/ResourceDependencyImpl.java
Date Tue, 08 Dec 2009 10:56:10 GMT
Author: marrs
Date: Tue Dec  8 10:56:09 2009
New Revision: 888320

URL: http://svn.apache.org/viewvc?rev=888320&view=rev
Log:
bugfix, only add property if the value is not null

Modified:
    felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/dependencies/ResourceDependencyImpl.java

Modified: felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/dependencies/ResourceDependencyImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/dependencies/ResourceDependencyImpl.java?rev=888320&r1=888319&r2=888320&view=diff
==============================================================================
--- felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/dependencies/ResourceDependencyImpl.java
(original)
+++ felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/dependencies/ResourceDependencyImpl.java
Tue Dec  8 10:56:09 2009
@@ -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);
 	    }
 	}



Mime
View raw message