incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r1039324 - /incubator/aries/trunk/jndi/jndi-url/src/main/java/org/apache/aries/jndi/url/ServiceRegistryListContext.java
Date Fri, 26 Nov 2010 12:11:12 GMT
Author: not
Date: Fri Nov 26 12:11:11 2010
New Revision: 1039324

URL: http://svn.apache.org/viewvc?rev=1039324&view=rev
Log:
ARIES-501 Make sure we never have a null array of ServiceReferences in our ServiceNamingEnumeration

Modified:
    incubator/aries/trunk/jndi/jndi-url/src/main/java/org/apache/aries/jndi/url/ServiceRegistryListContext.java

Modified: incubator/aries/trunk/jndi/jndi-url/src/main/java/org/apache/aries/jndi/url/ServiceRegistryListContext.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jndi/jndi-url/src/main/java/org/apache/aries/jndi/url/ServiceRegistryListContext.java?rev=1039324&r1=1039323&r2=1039324&view=diff
==============================================================================
--- incubator/aries/trunk/jndi/jndi-url/src/main/java/org/apache/aries/jndi/url/ServiceRegistryListContext.java
(original)
+++ incubator/aries/trunk/jndi/jndi-url/src/main/java/org/apache/aries/jndi/url/ServiceRegistryListContext.java
Fri Nov 26 12:11:11 2010
@@ -56,7 +56,7 @@ public class ServiceRegistryListContext 
     private ServiceNamingEnumeration(BundleContext context, ServiceReference[] theRefs, ThingManager<T>
manager)
     {
       ctx = context;
-      refs = theRefs;
+      refs = (theRefs != null) ? theRefs : new ServiceReference[0];
       mgr = manager;
     }
     



Mime
View raw message