diff --git a/typo3/sysext/frontend/Classes/ContentObject/FluidTemplateContentObject.php b/typo3/sysext/frontend/Classes/ContentObject/FluidTemplateContentObject.php index 862ac1a99d2f6ffbe89389e1e1e199d9fc5d8e76..dbc3d29f6e39465cff8981b79ce9e037cbe1e5ec 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/FluidTemplateContentObject.php +++ b/typo3/sysext/frontend/Classes/ContentObject/FluidTemplateContentObject.php @@ -21,6 +21,7 @@ use TYPO3\CMS\Extbase\Configuration\ConfigurationManager; use TYPO3\CMS\Extbase\Mvc\Web\RequestBuilder; use TYPO3\CMS\Extbase\Object\ObjectManager; use TYPO3\CMS\Fluid\View\StandaloneView; +use TYPO3\CMS\Frontend\ContentObject\Exception\ContentRenderingException; /** * Contains FLUIDTEMPLATE class object @@ -162,6 +163,12 @@ class FluidTemplateContentObject extends AbstractContentObject } elseif (!empty($conf['template']) && !empty($conf['template.'])) { // Fetch the Fluid template by template cObject $templateSource = $this->cObj->cObjGetSingle($conf['template'], $conf['template.']); + if ($templateSource === '') { + throw new ContentRenderingException( + 'Could not find template source for ' . $conf['template'], + 1437420865 + ); + } $this->view->setTemplateSource($templateSource); } else { // Fetch the Fluid template by file stdWrap