diff options
Diffstat (limited to 'lib/private/Files/Storage/Wrapper/Encoding.php')
-rw-r--r-- | lib/private/Files/Storage/Wrapper/Encoding.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Wrapper/Encoding.php b/lib/private/Files/Storage/Wrapper/Encoding.php index 11f21eb828e..caaba22b05f 100644 --- a/lib/private/Files/Storage/Wrapper/Encoding.php +++ b/lib/private/Files/Storage/Wrapper/Encoding.php @@ -510,7 +510,9 @@ class Encoding extends Wrapper { public function getMetaData($path) { $entry = $this->storage->getMetaData($this->findPathToUse($path)); - $entry['name'] = trim(Filesystem::normalizePath($entry['name']), '/'); + if ($entry !== null) { + $entry['name'] = trim(Filesystem::normalizePath($entry['name']), '/'); + } return $entry; } |