Skip to content

Commit

Permalink
fix(preview): Check if node id is null before deleting the preview fo…
Browse files Browse the repository at this point in the history
…lder

Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
  • Loading branch information
SystemKeeper committed Jan 22, 2024
1 parent 9398e90 commit 021bcee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/private/Preview/Watcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ protected function deleteNode(Node $node) {
}

try {
if (is_null($node->getId())) {
return;
}
$folder = $this->appData->getFolder((string)$node->getId());
$folder->delete();
} catch (NotFoundException $e) {
Expand Down

0 comments on commit 021bcee

Please sign in to comment.