Skip to content

Commit

Permalink
fix(psalm)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed May 29, 2024
1 parent 632d7ab commit 432c55c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Classifiers/Images/ClusteringFaceClassifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ public function classify(array $queueFiles): void {
}

try {
$userIds = $this->getUsersWithFileAccess($this->rootFolder->getFirstNodeById($queueFile->getFileId()));
$node = $this->rootFolder->getFirstNodeById($queueFile->getFileId());
$userIds = $node !== null ? $this->getUsersWithFileAccess($node) : [];
} catch (InvalidPathException|NotFoundException $e) {
$userIds = [];
}
Expand Down

0 comments on commit 432c55c

Please sign in to comment.