[BUGFIX] Invalid sys file storages must be ignored 93/41693/2
authorGeorg Ringer <georg.ringer@gmail.com>
Sun, 19 Jul 2015 07:48:25 +0000 (09:48 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sun, 19 Jul 2015 08:46:46 +0000 (10:46 +0200)
If a storage is not available anymore, it must be ignored

Change-Id: Ie00af1bc086871c046ac4556c0119fc82d30a17e
Resolves: #55714
Releases: master, 6.2
Reviewed-on: http://review.typo3.org/41693
Reviewed-by: David Greiner <hallo@davidgreiner.de>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php

index 4eb3934..168d7a2 100644 (file)
@@ -1463,7 +1463,9 @@ class BackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\AbstractU
                        foreach ($this->getFileMountRecords() as $row) {
                                if (!array_key_exists((int)$row['base'], $this->fileStorages)) {
                                        $storageObject = $storageRepository->findByUid($row['base']);
-                                       $this->fileStorages[$storageObject->getUid()] = $storageObject;
+                                       if ($storageObject) {
+                                               $this->fileStorages[$storageObject->getUid()] = $storageObject;
+                                       }
                                }
                        }
                }