aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/files/view.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/files/view.php b/lib/files/view.php
index 6d917bb585e..592c484a21c 100644
--- a/lib/files/view.php
+++ b/lib/files/view.php
@@ -697,10 +697,11 @@ class View {
$mountPoints = Filesystem::getMountPoints($path);
foreach ($mountPoints as $mountPoint) {
$subStorage = Filesystem::getStorage($mountPoint);
- $subCache = $subStorage->getCache();
- $rootEntry = $subCache->get('');
-
- $data['size'] += $rootEntry['size'];
+ if ($subStorage) {
+ $subCache = $subStorage->getCache();
+ $rootEntry = $subCache->get('');
+ $data['size'] += $rootEntry['size'];
+ }
}
}