You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2016/03/23 07:53:23 UTC

svn commit: r1736278 - /felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/service/HttpServiceFactory.java

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()