diff options
author | Akhil <akhil@e.email> | 2023-10-23 20:32:11 +0530 |
---|---|---|
committer | Akhil <akhil@e.email> | 2023-10-23 20:32:15 +0530 |
commit | 1d767ebff584eeb496c97dc7c0c2226791f358be (patch) | |
tree | cacf6246b7632645c884696519668718def65f81 /lib/private/Preview | |
parent | 834c9a209ebef7b8d5795b53a018577fe4e534ca (diff) | |
download | nextcloud-server-1d767ebff584eeb496c97dc7c0c2226791f358be.tar.gz nextcloud-server-1d767ebff584eeb496c97dc7c0c2226791f358be.zip |
Check if the node has a null ID before deleting in preview watcher
Signed-off-by: Akhil <akhil@e.email>
Diffstat (limited to 'lib/private/Preview')
-rw-r--r-- | lib/private/Preview/Watcher.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Preview/Watcher.php b/lib/private/Preview/Watcher.php index 7f4593f9fe3..ad6fed56020 100644 --- a/lib/private/Preview/Watcher.php +++ b/lib/private/Preview/Watcher.php @@ -61,6 +61,9 @@ class Watcher { } try { + if (is_null($node->getId())) { + return; + } $folder = $this->appData->getFolder((string)$node->getId()); $folder->delete(); } catch (NotFoundException $e) { |