Skip to content

Commit

Permalink
also set nonmaskedstorage in error cases
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Mar 20, 2017
1 parent a4ce440 commit f2e981e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/files_sharing/lib/SharedStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public function __construct($arguments) {
private function getSourceRootInfo() {
if (is_null($this->sourceRootInfo)) {
if (is_null($this->superShare->getNodeCacheEntry())) {
$this->init();
$this->sourceRootInfo = $this->nonMaskedStorage->getCache()->get($this->rootPath);
} else {
$this->sourceRootInfo = $this->superShare->getNodeCacheEntry();
Expand Down Expand Up @@ -132,6 +133,10 @@ private function init() {
$this->rootPath = '';
$this->logger->logException($e);
}

if (!$this->nonMaskedStorage) {
$this->nonMaskedStorage = $this->storage;
}
}

/**
Expand Down

0 comments on commit f2e981e

Please sign in to comment.