cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-6402] One more update
Date Tue, 19 May 2015 11:19:01 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes d5dbdc97b -> 9b5ea180c


[CXF-6402] One more update


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/9b5ea180
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/9b5ea180
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/9b5ea180

Branch: refs/heads/2.7.x-fixes
Commit: 9b5ea180ccca024fa2aac51a0838750fe574337b
Parents: d5dbdc9
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Tue May 19 12:16:20 2015 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Tue May 19 12:18:43 2015 +0100

----------------------------------------------------------------------
 .../cxf/transport/http_jetty/JettyHTTPServerEngine.java  | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/9b5ea180/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
----------------------------------------------------------------------
diff --git a/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
b/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
index b7e5e01..c6be34d 100644
--- a/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
+++ b/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
@@ -317,10 +317,13 @@ public class JettyHTTPServerEngine implements ServerEngine {
             checkRegistedContext(url);
         }
         if (contexts == null) {
-            if (server != null && server.getHandler() instanceof ContextHandlerCollection)
{
-                contexts = (ContextHandlerCollection) server.getHandler();
-            } else {
-                contexts = new ContextHandlerCollection();    
+            contexts = new ContextHandlerCollection();
+            if (server != null) {
+                if (server.getHandler() instanceof ContextHandlerCollection) {
+                    contexts = (ContextHandlerCollection) server.getHandler();
+                } else {
+                    server.setHandler(contexts);
+                }
             }
         }
         


Mime
View raw message