diff --git a/lib/private/connector/sabre/lockplugin.php b/lib/private/connector/sabre/lockplugin.php index d3e4e9e4d1..a3a7bb84e3 100644 --- a/lib/private/connector/sabre/lockplugin.php +++ b/lib/private/connector/sabre/lockplugin.php @@ -85,7 +85,11 @@ class LockPlugin extends ServerPlugin { if ($request->getMethod() !== 'PUT') { return; } - $node = $this->tree->getNodeForPath($request->getPath()); + try { + $node = $this->tree->getNodeForPath($request->getPath()); + } catch (NotFound $e) { + return; + } if ($node instanceof Node) { $node->releaseLock(ILockingProvider::LOCK_SHARED); }