diff --git a/Classes/Service/DeeplTranslationService.php b/Classes/Service/DeeplTranslationService.php index d136f09..1fa2a18 100644 --- a/Classes/Service/DeeplTranslationService.php +++ b/Classes/Service/DeeplTranslationService.php @@ -445,7 +445,7 @@ protected function canFieldBeTranslated(string $tableName, string $fieldName, ?s $result = true; } - $event = GeneralUtility::makeInstance(CanFieldBeTranslatedCheckEvent::class, $tableName, $fieldName, $fieldValue, $result); + $event = GeneralUtility::makeInstance(CanFieldBeTranslatedCheckEvent::class, $tableName, $fieldName, $fieldValue ?? '', $result); $this->eventDispatcher->dispatch($event); $result = $event->getCanBeTranslated();