Skip to content

Commit

Permalink
Merge pull request #43037 from nextcloud/fix/36463/preview-not-genera…
Browse files Browse the repository at this point in the history
…ted-stable28

[stable28] Fix for previews not being generated sometimes
  • Loading branch information
nickvergessen authored Feb 15, 2024
2 parents 82a3d2b + 983336c commit b328015
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 b328015

Please sign in to comment.