diff --git a/eZ/Publish/Core/Repository/Helper/RelationProcessor.php b/eZ/Publish/Core/Repository/Helper/RelationProcessor.php index be6291b94b..a629dacb31 100644 --- a/eZ/Publish/Core/Repository/Helper/RelationProcessor.php +++ b/eZ/Publish/Core/Repository/Helper/RelationProcessor.php @@ -116,7 +116,7 @@ public function processFieldRelations( // Map existing relations for easier handling $mappedRelations = []; foreach ($existingRelations as $relation) { - if ($relation->type & Relation::FIELD) { + if ($relation->type & Relation::FIELD && null !== $relation->sourceFieldDefinitionIdentifier) { $fieldDefinition = $contentType->getFieldDefinition($relation->sourceFieldDefinitionIdentifier); if ($fieldDefinition !== null) { $mappedRelations[Relation::FIELD][$fieldDefinition->id][$relation->destinationContentInfo->id] = $relation;