fix: don't error when checking login credential storage from cli

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2026-01-02 17:24:20 +01:00
parent 6dd6d06606
commit fa61c4c57d
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -43,8 +43,10 @@ class UserContext {
}
try {
$shareToken = $this->request->getParam('token');
$share = $this->shareManager->getShareByToken($shareToken);
return $share->getShareOwner();
if ($shareToken !== null) {
$share = $this->shareManager->getShareByToken($shareToken);
return $share->getShareOwner();
}
} catch (ShareNotFound $e) {
}