diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php b/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
index 216b459..66c905d 100644
--- a/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
+++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
@@ -93,8 +93,8 @@ abstract class ConfigEntityBase extends Entity implements ConfigEntityInterface
     $a_weight = isset($a->weight) ? $a->weight : 0;
     $b_weight = isset($b->weight) ? $b->weight : 0;
     if ($a_weight == $b_weight) {
-      $a_label = $a->label();
-      $b_label = $b->label();
+      $a_label = $a->label() ?: '';
+      $b_label = $b->label() ?: '';
       return strnatcasecmp($a_label, $b_label);
     }
     return ($a_weight < $b_weight) ? -1 : 1;
