diff --git a/lib/private/Files/Cache/Wrapper/CacheJail.php b/lib/private/Files/Cache/Wrapper/CacheJail.php index 357851bedd..1ad00ba44c 100644 --- a/lib/private/Files/Cache/Wrapper/CacheJail.php +++ b/lib/private/Files/Cache/Wrapper/CacheJail.php @@ -312,6 +312,10 @@ class CacheJail extends CacheWrapper { */ public function getPathById($id) { $path = $this->getCache()->getPathById($id); + if ($path === null) { + return null; + } + return $this->getJailedPath($path); }