LockInfo toRenew = resourceLocks.get(path);
Enumeration<String> tokenList = null;
- // At least one of the tokens of the locks must have been given
- tokenList = toRenew.tokens.elements();
- while (tokenList.hasMoreElements()) {
- String token = tokenList.nextElement();
- if (ifHeader.indexOf(token) != -1) {
- toRenew.expiresAt = lock.expiresAt;
- lock = toRenew;
+ if (toRenew != null) {
+ // At least one of the tokens of the locks must have been given
+ tokenList = toRenew.tokens.elements();
+ while (tokenList.hasMoreElements()) {
+ String token = tokenList.nextElement();
+ if (ifHeader.indexOf(token) != -1) {
+ toRenew.expiresAt = lock.expiresAt;
+ lock = toRenew;
+ }
}
}
<bug>51344</bug>: Fix problem with Lifecycle re-factoring for deprecated
embedded class that prevented events being triggered. (markt)
</fix>
+ <fix>
+ Prevent possible NPE when processing WebDAV locks. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Coyote">