Merge pull request #8196 from nextcloud/8160_12

[stable 12] 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 14:21:11 +01:00 committed by GitHub
commit 7e72a26dc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -311,6 +311,10 @@ class CacheJail extends CacheWrapper {
*/
public function getPathById($id) {
$path = $this->getCache()->getPathById($id);
if ($path === null) {
return null;
}
return $this->getJailedPath($path);
}