Skip to content

Commit

Permalink
Merge pull request #1030 from nextcloud/master_1013
Browse files Browse the repository at this point in the history
[master] Do not error on NotFoundException
  • Loading branch information
rullzer committed Aug 24, 2016
2 parents 2f1b17d + 352d22e commit 8d83667
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/files_sharing/lib/sharedstorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
use OCA\Files_Sharing\ISharedStorage;
use OCP\Constants;
use OCP\Files\Cache\ICacheEntry;
use OCP\Files\NotFoundException;
use OCP\Files\Storage\IStorage;
use OCP\Lock\ILockingProvider;

Expand Down Expand Up @@ -94,6 +95,9 @@ private function init() {
$sourcePath = $this->ownerView->getPath($this->superShare->getNodeId());
list($this->storage, $this->rootPath) = $this->ownerView->resolvePath($sourcePath);
$this->sourceRootInfo = $this->storage->getCache()->get($this->rootPath);
} catch (NotFoundException $e) {
$this->storage = new FailedStorage(['exception' => $e]);
$this->rootPath = '';
} catch (\Exception $e) {
$this->storage = new FailedStorage(['exception' => $e]);
$this->rootPath = '';
Expand Down

0 comments on commit 8d83667

Please sign in to comment.