Project

General

Profile

Actions

Bug #92032

closed

ImageService::setCompatibilityValues breaks when file missing

Added by Kevin Ditscheid over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2020-08-17
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions

Also available in: Atom PDF