Revert previous patch to fix obvious potential NPE as pointed out by Remy.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 22 Apr 2008 20:43:50 +0000 (20:43 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 22 Apr 2008 20:43:50 +0000 (20:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@650645 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/core/StandardContextValve.java

index 0b9b100..c473590 100644 (file)
@@ -136,13 +136,6 @@ final class StandardContextValve
 
         // Select the Wrapper to be used for this Request
         Wrapper wrapper = request.getWrapper();
-
-        if (wrapper.isUnavailable()) {
-            // May be as a result of a reload
-            // Try and find the new wrapper
-            wrapper = (Wrapper) container.findChild(wrapper.getName());
-        }
-
         if (wrapper == null) {
             String requestURI = request.getDecodedRequestURI();
             notFound(requestURI, response);