Author: cziegeler
Date: Wed Mar 23 06:53:22 2016
New Revision: 1736278

URL: http://svn.apache.org/viewvc?rev=1736278&view=rev
Log:
FELIX-5199 : Race condition in HttpServiceFactory.getService() causing exception

Modified:
    
felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/service/HttpServiceFactory.java

Modified: 
felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/service/HttpServiceFactory.java
URL: 
http://svn.apache.org/viewvc/felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/service/HttpServiceFactory.java?rev=1736278&r1=1736277&r2=1736278&view=diff
==============================================================================
--- 
felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/service/HttpServiceFactory.java
 (original)
+++ 
felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/service/HttpServiceFactory.java
 Wed Mar 23 06:53:22 2016
@@ -111,9 +111,8 @@ public final class HttpServiceFactory
         this.sharedHttpService = new SharedHttpServiceImpl(handlerRegistry);
 
         final String[] ifaces = new String[] { HttpService.class.getName(), 
ExtHttpService.class.getName() };
-        this.httpServiceReg = bundleContext.registerService(ifaces, this, 
this.httpServiceProps);
-
         this.active = true;
+        this.httpServiceReg = bundleContext.registerService(ifaces, this, 
this.httpServiceProps);
     }
 
     public void stop()


Reply via email to