aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Preview
diff options
context:
space:
mode:
authorAkhil <akhil@e.email>2023-10-23 20:32:11 +0530
committerAkhil <akhil@e.email>2023-10-23 20:32:15 +0530
commit1d767ebff584eeb496c97dc7c0c2226791f358be (patch)
treecacf6246b7632645c884696519668718def65f81 /lib/private/Preview
parent834c9a209ebef7b8d5795b53a018577fe4e534ca (diff)
downloadnextcloud-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.php3
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) {