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 4d1d5ebea7 Fix NPE caught by the testsuite 4d1d5ebea7 is described below commit 4d1d5ebea7fe7de7c2b09555e27fd68710ec2ea3 Author: remm <r...@apache.org> AuthorDate: Thu Apr 25 13:09:24 2024 +0200 Fix NPE caught by the testsuite --- java/org/apache/catalina/servlets/WebdavServlet.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/org/apache/catalina/servlets/WebdavServlet.java b/java/org/apache/catalina/servlets/WebdavServlet.java index 4922f2bf6d..d0a3864d82 100644 --- a/java/org/apache/catalina/servlets/WebdavServlet.java +++ b/java/org/apache/catalina/servlets/WebdavServlet.java @@ -2222,9 +2222,9 @@ public class WebdavServlet extends DefaultServlet implements PeriodicEventListen List<String> paths = lockNullResources.get(parentPath); if (paths != null) { paths.remove(path); - } - if (paths.isEmpty()) { - lockNullResources.remove(parentPath); + if (paths.isEmpty()) { + lockNullResources.remove(parentPath); + } } } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org