X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff_plain/7c898158131e073b5fe310fe27fdaf2efa7719fa..5409aa24e996e73aa8b2718077cb3b4a617fb20d:/typo3/sysext/form/Classes/Mvc/Configuration/YamlSource.php diff --git a/typo3/sysext/form/Classes/Mvc/Configuration/YamlSource.php b/typo3/sysext/form/Classes/Mvc/Configuration/YamlSource.php index 31afdd3a4afc..d342c5441850 100644 --- a/typo3/sysext/form/Classes/Mvc/Configuration/YamlSource.php +++ b/typo3/sysext/form/Classes/Mvc/Configuration/YamlSource.php @@ -70,6 +70,12 @@ class YamlSource if ($fileToLoad instanceof File) { $fileIdentifier = $fileToLoad->getIdentifier(); $rawYamlContent = $fileToLoad->getContents(); + if ($rawYamlContent === false) { + throw new NoSuchFileException( + 'The file "' . $fileToLoad . '" does not exist.', + 1498802253 + ); + } } else { $fileIdentifier = $fileToLoad; $fileToLoad = GeneralUtility::getFileAbsFileName($fileToLoad);