Skip to content

Commit ded4bdd

Browse files
Farcry69backportbot[bot]
authored andcommitted
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>
1 parent cea10d6 commit ded4bdd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/FilesMetadata/FilesMetadataManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function refreshMetadata(
104104
return $this->refreshMetadata($node, self::PROCESS_BACKGROUND);
105105
}
106106

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

110110
return $metadata;

0 commit comments

Comments
 (0)