cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1225876 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java
Date Fri, 30 Dec 2011 17:50:45 GMT
Author: sergeyb
Date: Fri Dec 30 17:50:44 2011
New Revision: 1225876

URL: http://svn.apache.org/viewvc?rev=1225876&view=rev
Log:
Adding a null guard to AbstractHttpServlet

Modified:
    cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java?rev=1225876&r1=1225875&r2=1225876&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java
(original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java
Fri Dec 30 17:50:44 2011
@@ -187,6 +187,9 @@ public abstract class AbstractHTTPServle
     
     private boolean matchPath(List<String> values, HttpServletRequest request) {
         String path = request.getPathInfo();
+        if (path == null) {
+            path = "/";
+        }
         if (redirectQueryCheck) {
             String queryString = request.getQueryString();
             if (queryString != null && queryString.length() > 0) {



Mime
View raw message