NPE in Aries JNDI when trying to process an empty service list
--------------------------------------------------------------
Key: ARIES-501
URL: https://issues.apache.org/jira/browse/ARIES-501
Project: Aries
Issue Type: Bug
Components: JNDI
Affects Versions: 0.3
Reporter: Timothy Ward
Priority: Critical
Fix For: 0.3
When doing a lookup using osgi:servlcelist/ that has no matches I get an NPE
when I call hasMore on the NamingEnumeration.
Got an exception: java.lang.NullPointerException
at
org.apache.aries.jndi.url.ServiceRegistryListContext$ServiceNamingEnumeration.hasMoreElements(ServiceRegistryListContext.java:81)
at
org.apache.aries.jndi.url.ServiceRegistryListContext$ServiceNamingEnumeration.hasMore(ServiceRegistryListContext.java:71)
at test.hot.extension.web.TestServlet.doGet(TestServlet.java:57)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1133)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.