Fix cardinality of HTTP handlers
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / internal / runtime / CmsDeploymentImpl.java
index 67daef2c8c8e5ce249b7cb8107b4626bf55f2e2b..421ff661aeb2decf812a3f9a2baec23a4ebbd31b 100644 (file)
@@ -74,10 +74,11 @@ public class CmsDeploymentImpl implements CmsDeployment {
                CmsAuthenticator authenticator = isPublic ? new PublicCmsAuthenticator() : new CmsAuthenticator();
                httpHandlers.put(contextPath, httpHandler);
                httpAuthenticators.put(contextPath, authenticator);
-               if (httpServer == null)
+               if (httpServer == null) {
                        return;
-               else
+               } else {
                        createHttpContext(contextPath, httpHandler, authenticator);
+               }
        }
 
        public void createHttpContext(String contextPath, HttpHandler httpHandler, CmsAuthenticator authenticator) {