Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: Prevent crash when refreshing metadata for files without an owner
This crash was mostly happening when using external storages and for example the command "occ memories:migrate-google-takeout"

Signed-off-by: Vincent FarZz <[email protected]>
  • Loading branch information
Farcry69 authored and solracsf committed Sep 22, 2024
commit 0c12c067b0533a57fa7f69e3ac2b20d2d56ebb87
2 changes: 1 addition & 1 deletion lib/private/FilesMetadata/FilesMetadataManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function refreshMetadata(
return $this->refreshMetadata($node, self::PROCESS_BACKGROUND);
}

$this->jobList->add(UpdateSingleMetadata::class, [$node->getOwner()->getUID(), $node->getId()]);
$this->jobList->add(UpdateSingleMetadata::class, [$node->getOwner()?->getUID(), $node->getId()]);
}

return $metadata;
Expand Down