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