Skip to content

Commit

Permalink
[BUGFIX] Return empty string if no file reference is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
smichaelsen committed Jun 16, 2017
1 parent 403b280 commit 7d706cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/ViewHelpers/ResponsivePictureViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ public function render(): string
{
/** @var FileReference $fileReference */
$fileReference = $this->arguments['fileReference'];
if (!$fileReference instanceof FileReference) {
return '';
}
$cropString = $fileReference->getProperty('crop');
$cropVariantCollection = CropVariantCollection::create((string) $cropString);
$sourceMarkups = [];
Expand Down

0 comments on commit 7d706cf

Please sign in to comment.