Issue Bug Closed

#92032ImageService::setCompatibilityValues breaks when file missing

Kevin Ditscheid 08/17/20, 14:21 updated 09/29/20, 15:06

Description

The \TYPO3\CMS\Extbase\ServiceImageService breaks hard when calling setCompatibilityValues with missing images.
This is because $processedImage->getPublicUrl() can return NULL instead of a string, but the AssetCollector requires a string input.
This causes a TypeError and will break if an image object is provided with missing=1.
We should probably check for that NULL return value of getPublicUrl here, to prevent hard breaks.

Reviews 2