diff --git a/lib/filesystem/VirtualFolderType.php b/lib/filesystem/VirtualFolderType.php
index 36ad3fed062f513e060a7eff074f9322ea7e5d21..e2236ee043eda7a3f1b634cae9de2c53616361b5 100644
--- a/lib/filesystem/VirtualFolderType.php
+++ b/lib/filesystem/VirtualFolderType.php
@@ -87,7 +87,7 @@ class VirtualFolderType implements FolderType
      */
     public function __get($attribute)
     {
-        return $this->folderdata[$attribute];
+        return $this->folderdata[$attribute] ?? null;
     }
 
     /**