--- java/org/apache/catalina/servlets/WebdavServlet.java (revision 1130936) +++ java/org/apache/catalina/servlets/WebdavServlet.java (working copy) @@ -1329,7 +1329,7 @@ LockInfo toRenew = (LockInfo) resourceLocks.get(path); Enumeration tokenList = null; - if (lock != null) { + if (toRenew != null) { // At least one of the tokens of the locks must have been given