This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push: new 2231a5172f Fix NPE caught by the testsuite 2231a5172f is described below commit 2231a5172fb2565c6c1d55879439d9849d975224 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 7afe45a378..f1401c56cd 100644 --- a/java/org/apache/catalina/servlets/WebdavServlet.java +++ b/java/org/apache/catalina/servlets/WebdavServlet.java @@ -2223,9 +2223,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