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
commit 3b761016cff2e15b5d363c15f24c18c4ddf931a1 Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu May 6 22:33:29 2021 +0100 Remove unnecessary code (EL can't be null here) --- java/org/apache/jasper/compiler/Generator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/org/apache/jasper/compiler/Generator.java b/java/org/apache/jasper/compiler/Generator.java index 0c0c6dc..b941532 100644 --- a/java/org/apache/jasper/compiler/Generator.java +++ b/java/org/apache/jasper/compiler/Generator.java @@ -3091,9 +3091,9 @@ class Generator { sb.append("}))"); attrValue = sb.toString(); } else { + // Must be EL // run attrValue through the expression interpreter - String mapName = (attr.getEL() != null) ? attr.getEL() - .getMapName() : null; + String mapName = attr.getEL().getMapName(); attrValue = elInterpreter.interpreterCall(ctxt, this.isTagFile, attrValue, c[0], mapName); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org