also set nonmaskedstorage in error cases
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
a4ce440392
commit
f2e981e269
1 changed files with 5 additions and 0 deletions
|
@ -98,6 +98,7 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
|
|||
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();
|
||||
|
@ -132,6 +133,10 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
|
|||
$this->rootPath = '';
|
||||
$this->logger->logException($e);
|
||||
}
|
||||
|
||||
if (!$this->nonMaskedStorage) {
|
||||
$this->nonMaskedStorage = $this->storage;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue