diff options
author | Robin Appelman <robin@icewind.nl> | 2017-12-11 16:39:44 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-12-11 16:56:10 +0100 |
commit | 05d2f61a592861ecbd517307de2b868d35566300 (patch) | |
tree | 5cb7aedc61891ece0261939017f81e669b3963b3 /lib/private/Files/View.php | |
parent | 10aa287463b6888d2e418ad31fa3a390fbea359e (diff) | |
download | nextcloud-server-05d2f61a592861ecbd517307de2b868d35566300.tar.gz nextcloud-server-05d2f61a592861ecbd517307de2b868d35566300.zip |
handle not found mounts when cleaning avatars
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/View.php')
-rw-r--r-- | lib/private/Files/View.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 58552be2609..592d4b717ce 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -1362,6 +1362,9 @@ class View { $path = Filesystem::normalizePath($this->fakeRoot . '/' . $path); $mount = Filesystem::getMountManager()->find($path); + if (!$mount) { + return false; + } $storage = $mount->getStorage(); $internalPath = $mount->getInternalPath($path); if ($storage) { @@ -1411,6 +1414,9 @@ class View { $path = $this->getAbsolutePath($directory); $path = Filesystem::normalizePath($path); $mount = $this->getMount($directory); + if (!$mount) { + return []; + } $storage = $mount->getStorage(); $internalPath = $mount->getInternalPath($path); if ($storage) { |