This is an automated email from the ASF dual-hosted git repository. markt 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 5010c4e Avoid possible NPE 5010c4e is described below commit 5010c4e0bcfbc520718253d8ce4a4ce7ae7a295b Author: Mark Thomas <ma...@apache.org> AuthorDate: Tue Mar 15 16:47:05 2022 +0000 Avoid possible NPE No functional change since NPE would be swallowed but this saves generating the NPE. --- java/org/apache/tomcat/util/IntrospectionUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/org/apache/tomcat/util/IntrospectionUtils.java b/java/org/apache/tomcat/util/IntrospectionUtils.java index b019623..36dbcdf 100644 --- a/java/org/apache/tomcat/util/IntrospectionUtils.java +++ b/java/org/apache/tomcat/util/IntrospectionUtils.java @@ -312,7 +312,7 @@ public final class IntrospectionUtils { Hashtable<Object,Object> staticProp, PropertySource dynamicProp[], ClassLoader classLoader) { - if (value.indexOf('$') < 0) { + if (value == null || value.indexOf('$') < 0) { return value; } StringBuilder sb = new StringBuilder(); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org