You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2024/04/25 11:09:46 UTC
(tomcat) branch main updated: Fix NPE caught by the testsuite
This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 07612b5f8e Fix NPE caught by the testsuite
07612b5f8e is described below
commit 07612b5f8ee0034fecaa75359c689a33b203597d
Author: remm <re...@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org