mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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 <farcry69@live.fr>
This commit is contained in:
parent
6fce6fa1d6
commit
c2e1c9f8dc
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ class FilesMetadataManager implements IFilesMetadataManager {
|
|||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue