[BUGFIX] Em: Get preconfigured distribution causes warning 01/25401/2
authorNicole Cordes <typo3@cordes.co>
Thu, 14 Nov 2013 13:41:47 +0000 (14:41 +0100)
committerSteffen Ritter <info@rs-websystems.de>
Thu, 14 Nov 2013 13:45:59 +0000 (14:45 +0100)
This patch adds an early return for empty file name which happens if an
extension isn't installed.

Resolves: #53641
Releases: 6.2
Change-Id: I1cc3605bf5cddfd4e83c363b974a83d20172d0ce
Reviewed-on: https://review.typo3.org/25401
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/sysext/core/Classes/Resource/ResourceFactory.php

index 9ebd3c3..549a57f 100644 (file)
@@ -434,6 +434,9 @@ class ResourceFactory implements \TYPO3\CMS\Core\SingletonInterface {
                                return $this->getObjectFromCombinedIdentifier($input);
                        } elseif ($prefix == 'EXT') {
                                $input = GeneralUtility::getFileAbsFileName($input);
+                               if (empty($input)) {
+                                       return NULL;
+                               }
                                $input = PathUtility::getRelativePath(PATH_site, dirname($input)) . basename($input);
                                return $this->getFileObjectFromCombinedIdentifier($input);
                        } else {