mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
fix(preview): Check if node id is null before deleting the preview folder
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
This commit is contained in:
parent
47d2560506
commit
f0146b6f4a
1 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue