This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 022740fc2a Fix backport of NPE fixes
022740fc2a is described below

commit 022740fc2abd940fdb2c2993d74122fb1c63572c
Author: Mark Thomas <[email protected]>
AuthorDate: Thu May 21 15:26:22 2026 +0100

    Fix backport of NPE fixes
---
 java/org/apache/catalina/core/AsyncContextImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/core/AsyncContextImpl.java 
b/java/org/apache/catalina/core/AsyncContextImpl.java
index 7ce427b993..d6d9001de5 100644
--- a/java/org/apache/catalina/core/AsyncContextImpl.java
+++ b/java/org/apache/catalina/core/AsyncContextImpl.java
@@ -194,7 +194,7 @@ public class AsyncContextImpl implements AsyncContext, 
AsyncContextCallback {
             path = path.substring(cpath.length());
         }
         Context context = this.context;
-        if (context == null || context.getDispatchersUseEncodedPaths()) {
+        if (context != null && !context.getDispatchersUseEncodedPaths()) {
             path = UDecoder.URLDecode(path, StandardCharsets.UTF_8);
         }
         dispatch(path);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to