Author: asoldano
Date: 2013-10-14 04:11:48 -0400 (Mon, 14 Oct 2013)
New Revision: 17994
Modified:
container/jboss72/branches/jbossws-jboss720/server-integration/src/main/java/org/jboss/as/webservices/util/ServiceContainerEndpointRegistry.java
Log:
[JBWS-3719] Prevent NPE
Modified:
container/jboss72/branches/jbossws-jboss720/server-integration/src/main/java/org/jboss/as/webservices/util/ServiceContainerEndpointRegistry.java
===================================================================
---
container/jboss72/branches/jbossws-jboss720/server-integration/src/main/java/org/jboss/as/webservices/util/ServiceContainerEndpointRegistry.java 2013-10-14
06:58:54 UTC (rev 17993)
+++
container/jboss72/branches/jbossws-jboss720/server-integration/src/main/java/org/jboss/as/webservices/util/ServiceContainerEndpointRegistry.java 2013-10-14
08:11:48 UTC (rev 17994)
@@ -91,7 +91,10 @@
Set<Endpoint> endpoints = new CopyOnWriteArraySet<Endpoint>();
for (ServiceName sname : WSServices.getContainerRegistry().getServiceNames()) {
if (sname.getCanonicalName().startsWith(endpointPrefix)) {
- endpoints.add(ASHelper.getMSCService(sname, Endpoint.class));
+ Endpoint ep = ASHelper.getMSCService(sname, Endpoint.class);
+ if (ep != null) { //JBWS-3719
+ endpoints.add(ep);
+ }
}
}
return endpoints;
Show replies by date