From: markt Date: Tue, 15 Sep 2009 12:27:40 +0000 (+0000) Subject: Fix NPE if no filters are configured. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9f0e01aaddcbd67bfdeacd82e79c53ebe2ab8253;p=tomcat7.0 Fix NPE if no filters are configured. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815290 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/core/StandardWrapperValve.java b/java/org/apache/catalina/core/StandardWrapperValve.java index 74522f062..d9dbc1bcf 100644 --- a/java/org/apache/catalina/core/StandardWrapperValve.java +++ b/java/org/apache/catalina/core/StandardWrapperValve.java @@ -199,7 +199,9 @@ final class StandardWrapperValve // Reset comet flag value after creating the filter chain request.setComet(false); //check filters to see if we support async or not. - request.setAsyncSupported(filterChain.isAsyncSupported()); + if (filterChain != null) { + request.setAsyncSupported(filterChain.isAsyncSupported()); + } // Call the filter chain for this request // NOTE: This also calls the servlet's service() method