diff --git a/core/modules/taxonomy/taxonomy.post_update.php b/core/modules/taxonomy/taxonomy.post_update.php index 518c0b0b67..93dc2df5cb 100644 --- a/core/modules/taxonomy/taxonomy.post_update.php +++ b/core/modules/taxonomy/taxonomy.post_update.php @@ -75,7 +75,10 @@ function taxonomy_convert_entity_ids_to_uuids(array $entity_ids) { $uuids[] = $entity_id; continue; } - $uuids[] = Term::load($entity_id)->uuid(); + $term = Term::load($entity_id); + if ($term){ + $uuids[] = $term->uuid(); + } } return $uuids;