fix: 🐛 DoUnlock空指针异常
This commit is contained in:
parent
c9e87bfcd7
commit
f0bdb77674
|
@ -72,6 +72,11 @@ public class DoUnlock extends DeterminableMethod {
|
|||
if (_resourceLocks.unlock(transaction, lockId, owner)) {
|
||||
StoredObject so = _store.getStoredObject(
|
||||
transaction, path);
|
||||
if (so == null) {
|
||||
resp.sendError(HttpServletResponse.SC_NOT_FOUND);
|
||||
return;
|
||||
}
|
||||
|
||||
if (so.isNullResource()) {
|
||||
_store.removeObject(transaction, path);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue