Skip to content

Commit

Permalink
Merge pull request #41067 from Murena-SAS/preview-folder-deletes
Browse files Browse the repository at this point in the history
Fix for previews not being generated sometimes
  • Loading branch information
blizzz authored Jan 18, 2024
2 parents 8314fc5 + 1d767eb commit c4f4c5a
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 c4f4c5a

Please sign in to comment.