From 3d0661a1e79d48ff68a1302126a30e78a9732fa4 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 23 Apr 2014 12:54:18 +0200 Subject: Fix error when viewing expired link --- lib/private/files/filesystem.php | 3 +++ 1 file changed, 3 insertions(+) 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(); } -- cgit v1.2.3