From 432c55c9d5aa7b3da5e41c3cd4efabcda4e2e95f Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Wed, 29 May 2024 09:31:09 +0200 Subject: [PATCH] fix(psalm) Signed-off-by: Marcel Klehr --- lib/Classifiers/Images/ClusteringFaceClassifier.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Classifiers/Images/ClusteringFaceClassifier.php b/lib/Classifiers/Images/ClusteringFaceClassifier.php index 289652e9..771b87de 100644 --- a/lib/Classifiers/Images/ClusteringFaceClassifier.php +++ b/lib/Classifiers/Images/ClusteringFaceClassifier.php @@ -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 = []; }