Merge pull request #8177 from nextcloud/8160_13

[stable13] Do not try to get the jailed path if we can't find the id
This commit is contained in:
Morris Jobke 2018-02-06 11:18:46 +01:00 committed by GitHub
commit 0fc97b2104
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}