diff --git a/src/module-elasticsuite-catalog/Model/Product/Indexer/Fulltext/Datasource/AttributeData.php b/src/module-elasticsuite-catalog/Model/Product/Indexer/Fulltext/Datasource/AttributeData.php index 269180b91..028714e4f 100644 --- a/src/module-elasticsuite-catalog/Model/Product/Indexer/Fulltext/Datasource/AttributeData.php +++ b/src/module-elasticsuite-catalog/Model/Product/Indexer/Fulltext/Datasource/AttributeData.php @@ -152,7 +152,9 @@ private function addRelationData(&$parentData, $childAttributes, $relation) $configurableAttributesCodes = array_map( function ($attributeId) { - return $this->attributesById[(int) $attributeId]->getAttributeCode(); + if (isset($this->attributesById[(int) $attributeId])) { + return $this->attributesById[(int) $attributeId]->getAttributeCode(); + } }, $relation['configurable_attributes'] );