diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-04-23 12:54:18 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-04-23 12:54:18 +0200 |
commit | 3d0661a1e79d48ff68a1302126a30e78a9732fa4 (patch) | |
tree | a4fd704208ed62468ffb9b06cf34f0ca1380a8bd /lib/private/files/filesystem.php | |
parent | 97f21712cda12bdcd52994ace627dc9c35a26f5a (diff) | |
download | nextcloud-server-3d0661a1e79d48ff68a1302126a30e78a9732fa4.tar.gz nextcloud-server-3d0661a1e79d48ff68a1302126a30e78a9732fa4.zip |
Fix error when viewing expired link
Diffstat (limited to 'lib/private/files/filesystem.php')
-rw-r--r-- | lib/private/files/filesystem.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php index 7e27650c557..434ee495870 100644 --- a/lib/private/files/filesystem.php +++ b/lib/private/files/filesystem.php @@ -374,6 +374,9 @@ class Filesystem { * Returns path like /admin/files */ static public function getRoot() { + if (!self::$defaultInstance) { + return null; + } return self::$defaultInstance->getRoot(); } |