Skip to content

Commit

Permalink
Merge pull request #43038 from nextcloud/fix/36463/preview-not-genera…
Browse files Browse the repository at this point in the history
…ted-stable27
  • Loading branch information
Altahrim authored Feb 9, 2024
2 parents 436759f + f0146b6 commit d3252ca
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 d3252ca

Please sign in to comment.