diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-12-01 12:34:37 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-12-04 15:23:20 +0100 |
commit | d2fe30d464adac9b3a4dc300aad135d1cf682017 (patch) | |
tree | 67b52e86b936078351a92b9d93685f913f994211 /apps/dav/lib/Connector/Sabre | |
parent | c8a29ec94287855bcd02aad6e315a9656ba0183d (diff) | |
download | nextcloud-server-d2fe30d464adac9b3a4dc300aad135d1cf682017.tar.gz nextcloud-server-d2fe30d464adac9b3a4dc300aad135d1cf682017.zip |
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/dav/lib/Connector/Sabre')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/ObjectTree.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/ObjectTree.php b/apps/dav/lib/Connector/Sabre/ObjectTree.php index d05f0857ec9..25db1d5028c 100644 --- a/apps/dav/lib/Connector/Sabre/ObjectTree.php +++ b/apps/dav/lib/Connector/Sabre/ObjectTree.php @@ -156,7 +156,7 @@ class ObjectTree extends CachingTree { try { $info = $this->fileView->getFileInfo($path); - if ($info->getStorage()->instanceOfStorage(FailedStorage::class)) { + if ($info instanceof \OCP\Files\FileInfo && $info->getStorage()->instanceOfStorage(FailedStorage::class)) { throw new StorageNotAvailableException(); } } catch (StorageNotAvailableException $e) { |