This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit dd60b5e446a44495dcbf6a90e84f4c5ec2cd716d Author: Mark Thomas <ma...@apache.org> AuthorDate: Tue Apr 20 16:42:06 2021 +0100 REmove unnecessary code --- java/org/apache/jasper/compiler/Generator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java/org/apache/jasper/compiler/Generator.java b/java/org/apache/jasper/compiler/Generator.java index bef26f6..093cde3 100644 --- a/java/org/apache/jasper/compiler/Generator.java +++ b/java/org/apache/jasper/compiler/Generator.java @@ -2004,8 +2004,9 @@ class Generator { // Compute attribute value string for XML-style and named // attributes Hashtable<String,String> map = new Hashtable<>(); + // Validator ensures this is non-null Node.JspAttribute[] attrs = n.getJspAttributes(); - for (int i = 0; attrs != null && i < attrs.length; i++) { + for (int i = 0; i < attrs.length; i++) { String value = null; String nvp = null; if (attrs[i].isNamedAttribute()) { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org