This is an automated email from the ASF dual-hosted git repository. remm 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 75b485c0fa Avoid possible NPE 75b485c0fa is described below commit 75b485c0fa3c6a2210448bfb720ceca97f0a8ff4 Author: remm <r...@apache.org> AuthorDate: Wed Sep 20 14:35:27 2023 +0200 Avoid possible NPE Found by coverity. --- java/org/apache/jasper/el/JasperELResolver.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java/org/apache/jasper/el/JasperELResolver.java b/java/org/apache/jasper/el/JasperELResolver.java index 0bfb8d8595..4ac327d3f1 100644 --- a/java/org/apache/jasper/el/JasperELResolver.java +++ b/java/org/apache/jasper/el/JasperELResolver.java @@ -193,6 +193,9 @@ public class JasperELResolver extends CompositeELResolver { @Override public Object getValue(ELContext context, Object base, Object property) { + if (base == null || property == null) { + return null; + } Object value = null; Method method = getReadMethod(base.getClass(), property.toString()); if (method != null) { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org