diff --git a/typo3/sysext/install/Classes/Updates/RowUpdater/ImageCropUpdater.php b/typo3/sysext/install/Classes/Updates/RowUpdater/ImageCropUpdater.php index 1d99eed28ef02c78e24419b7a97d380faa081bf4..8107a7cf5d70bcd6e7c865fb9f3a861c39fa9744 100644 --- a/typo3/sysext/install/Classes/Updates/RowUpdater/ImageCropUpdater.php +++ b/typo3/sysext/install/Classes/Updates/RowUpdater/ImageCropUpdater.php @@ -76,9 +76,13 @@ class ImageCropUpdater implements RowUpdaterInterface foreach ($tablePayload['fields'] as $field) { if (strpos($inputRow[$field], '{"x":') === 0) { - $file = $this->getFile($inputRow, $tablePayload['fileReferenceField'] ?: 'uid_local'); $cropArray = json_decode($inputRow[$field], true); if (is_array($cropArray)) { + $file = $this->getFile($inputRow, $tablePayload['fileReferenceField'] ?: 'uid_local'); + if (null === $file) { + continue; + } + $cropArea = Area::createFromConfiguration(json_decode($inputRow[$field], true)); $cropVariantCollectionConfig = [ 'default' => [