From 2b045c9a0d636cdcbe989ea1ff33f561cc3fbb73 Mon Sep 17 00:00:00 2001 From: Philipp Mueller Date: Tue, 16 Apr 2024 22:39:12 +0200 Subject: [PATCH] [BUGFIX] Handle null fieldValue in DeeplTranslationService --- Classes/Service/DeeplTranslationService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();