Skip to content

Commit 0c12c06

Browse files
Farcry69solracsf
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 3af9721 commit 0c12c06

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
@@ -122,7 +122,7 @@ public function refreshMetadata(
122122
return $this->refreshMetadata($node, self::PROCESS_BACKGROUND);
123123
}
124124

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

128128
return $metadata;

0 commit comments

Comments
 (0)