diff --git a/src/bundle/Resources/public/js/scripts/fieldType/ezimageasset.js b/src/bundle/Resources/public/js/scripts/fieldType/ezimageasset.js
index e965faff42..5e9fd5dfb4 100644
--- a/src/bundle/Resources/public/js/scripts/fieldType/ezimageasset.js
+++ b/src/bundle/Resources/public/js/scripts/fieldType/ezimageasset.js
@@ -96,6 +96,18 @@
return field.fieldDefinitionIdentifier === imageAssetMapping['contentFieldIdentifier'];
});
+ if (imageField.fieldValue === null) {
+ showErrorNotification(
+ Translator.trans(
+ /* @Desc("The chosen asset has no image data available.") */ 'ezimageasset.empty_data.message.error',
+ {},
+ 'fieldtypes_edit',
+ ),
+ );
+
+ return;
+ }
+
this.updateData(
response.ContentInfo.Content._id,
response.ContentInfo.Content.TranslatedName,
diff --git a/src/bundle/Resources/translations/fieldtypes_edit.en.xliff b/src/bundle/Resources/translations/fieldtypes_edit.en.xliff
index ad6ad493f2..52b9b42ecd 100644
--- a/src/bundle/Resources/translations/fieldtypes_edit.en.xliff
+++ b/src/bundle/Resources/translations/fieldtypes_edit.en.xliff
@@ -26,6 +26,11 @@
The image has been published and can now be reused
key: ezimageasset.create.message.success
+
+
+ The chosen asset has no image data available.
+ key: ezimageasset.empty_data.message.error
+
Area below needs correction