Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
http.base-3.0.6, http.jetty-3.1.6, http.bridge-3.0.6
-
None
Description
The HttpServiceFactory.getService() is as follows:
public HttpService getService(final Bundle bundle, final ServiceRegistration<HttpService> reg) { final ServletContext servletContext = this.context; if ( servletContext != null ) { return new PerBundleHttpServiceImpl(bundle, this.sharedHttpService, this.context, this.contextAttributeListenerManager, this.sharedContextAttributes, this.requestListenerManager, this.requestAttributeListenerManager); } return null; }
However it is possible that this.context is set to null after the check for null is done but before the constructor is called causing a null servlet context to be passed to PerBundleHttpServiceImpl