diff --git a/src/Administration/Resources/app/administration/src/module/sw-cms/service/cms.service.js b/src/Administration/Resources/app/administration/src/module/sw-cms/service/cms.service.js
index <HASH>..<HASH> 100644
--- a/src/Administration/Resources/app/administration/src/module/sw-cms/service/cms.service.js
+++ b/src/Administration/Resources/app/administration/src/module/sw-cms/service/cms.service.js
@@ -93,7 +93,7 @@ function getEntityData(element, configKey) {
     if (Array.isArray(configValue)) {
         const entityIds = [];
 
-        if (configValue[0].mediaId) {
+        if (configValue.length && configValue[0].mediaId) {
             configValue.forEach((val) => {
                 entityIds.push(val.mediaId);
             });
NEXT-<I> - Added additional check before adding mediaId
Fixes #<I>