diff --git a/lib/Service/RecentlySharedFilesSource.php b/lib/Service/RecentlySharedFilesSource.php index 2cd4355b..d61bdd8a 100644 --- a/lib/Service/RecentlySharedFilesSource.php +++ b/lib/Service/RecentlySharedFilesSource.php @@ -12,6 +12,7 @@ use Generator; use OCP\Files\IRootFolder; use OCP\Files\NotFoundException; +use OCP\Files\StorageNotAvailableException; use OCP\IL10N; use OCP\IUser; use OCP\Share\IManager; @@ -103,6 +104,8 @@ public function getMostRecentRecommendation(IUser $user, int $max): array { ); } catch (NotFoundException $ex) { return null; + } catch (StorageNotAvailableException $e) { + return null; } }, $shares)); }