From 9f0e01aaddcbd67bfdeacd82e79c53ebe2ab8253 Mon Sep 17 00:00:00 2001 From: markt Date: Tue, 15 Sep 2009 12:27:40 +0000 Subject: [PATCH] Fix NPE if no filters are configured. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815290 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/catalina/core/StandardWrapperValve.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.11.0