Skip to content

Commit 7cfdd45

Browse files
authored
Merge pull request #757 from nextcloud/backport/755/stable29
[stable29] fix: catch and filter shares whom storage is not available
2 parents a5e48bf + b849e8a commit 7cfdd45

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Service/RecentlySharedFilesSource.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
use Generator;
2929
use OCP\Files\IRootFolder;
3030
use OCP\Files\NotFoundException;
31+
use OCP\Files\StorageNotAvailableException;
3132
use OCP\IL10N;
3233
use OCP\IUser;
3334
use OCP\Share\IManager;
@@ -119,6 +120,8 @@ public function getMostRecentRecommendation(IUser $user, int $max): array {
119120
);
120121
} catch (NotFoundException $ex) {
121122
return null;
123+
} catch (StorageNotAvailableException $e) {
124+
return null;
122125
}
123126
}, $shares));
124127
}

0 commit comments

Comments
 (0)