[BUGFIX] Avoid to get a file object with the uid zero
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / View / ThumbnailView.php
index 2281ccb..c297fa2 100644 (file)
@@ -119,7 +119,7 @@ class ThumbnailView {
                // We need to distinguish it from absolute Windows paths by cbecking for an integer as first part.
                $parts = GeneralUtility::trimExplode(':', $filePathOrCombinedFileIdentifier);
                // Best case: we get a sys_file UID
-               if (MathUtility::canBeInterpretedAsInteger($filePathOrCombinedFileIdentifier)) {
+               if (!empty($filePathOrCombinedFileIdentifier) && MathUtility::canBeInterpretedAsInteger($filePathOrCombinedFileIdentifier)) {
                        /** @var File $filePathOrCombinedFileIdentifier */
                        $fileObject = ResourceFactory::getInstance()->getFileObject($filePathOrCombinedFileIdentifier);
                } elseif (count($parts) <= 1 || !MathUtility::canBeInterpretedAsInteger($parts[0])) {