This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new 735d927d39 Fix possible EL argument mismatch when it was set to null
735d927d39 is described below
commit 735d927d39de0ee3a6194f4a02c9a2af39ae268a
Author: remm <[email protected]>
AuthorDate: Wed May 20 09:20:32 2026 +0200
Fix possible EL argument mismatch when it was set to null
---
java/jakarta/el/ELContext.java | 2 +-
webapps/docs/changelog.xml | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/java/jakarta/el/ELContext.java b/java/jakarta/el/ELContext.java
index d0f7e4adbe..5577fe3ef9 100644
--- a/java/jakarta/el/ELContext.java
+++ b/java/jakarta/el/ELContext.java
@@ -312,7 +312,7 @@ public abstract class ELContext {
public Object getLambdaArgument(String name) {
for (Map<String,Object> arguments : getLambdaArguments()) {
Object result = arguments.get(name);
- if (result != null) {
+ if (result != null || arguments.containsKey(name)) {
return result;
}
}
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index c63dc6e9a0..a8a3953ffb 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -167,6 +167,9 @@
<fix>
Fix EL standalone interface bean properties discovery. (remm)
</fix>
+ <fix>
+ Fix possible EL argument mismatch when it was set to null. (remm)
+ </fix>
</changelog>
</subsection>
<subsection name="Cluster">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]