This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push: new 46698a3abb Handling has changed from NPE to ISE 46698a3abb is described below commit 46698a3abb01ba807645fc416903f821b292efd3 Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Oct 5 13:25:19 2023 +0100 Handling has changed from NPE to ISE --- test/org/apache/catalina/core/TestAsyncContextImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/org/apache/catalina/core/TestAsyncContextImpl.java b/test/org/apache/catalina/core/TestAsyncContextImpl.java index 8a9355b474..e8e95994b0 100644 --- a/test/org/apache/catalina/core/TestAsyncContextImpl.java +++ b/test/org/apache/catalina/core/TestAsyncContextImpl.java @@ -296,12 +296,12 @@ public class TestAsyncContextImpl extends TomcatBaseTest { // may be recycled at any point. Normally // there is enough time for this call to // complete but not always. If this call - // fails in Tomcat an NPE will result so + // fails in Tomcat an ISE will result so // handle this here with a hack. What we are // really checking here is that it does not // return true. result.append(req.isAsyncStarted()); - } catch (NullPointerException npe) { + } catch (IllegalStateException npe) { result.append("false"); } catch (Throwable t) { // Additional debugging for intermittent test failure --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org