diff --git a/core/modules/tour/src/TipPluginBase.php b/core/modules/tour/src/TipPluginBase.php
index f8e2fa1352fdc58528d30a7fb611959443c99e2a..2c226f58a205182668e71f99548d57b3db53077b 100644
--- a/core/modules/tour/src/TipPluginBase.php
+++ b/core/modules/tour/src/TipPluginBase.php
@@ -66,7 +66,7 @@ public function getWeight() {
    * {@inheritdoc}
    */
   public function getAttributes() {
-    return $this->get('attributes');
+    return $this->get('attributes') ?: [];
   }
 
   /**
diff --git a/core/modules/tour/tests/tour_test/config/install/tour.tour.tour-test.yml b/core/modules/tour/tests/tour_test/config/install/tour.tour.tour-test.yml
index 8f781277315d649494c0d08e81dba4eee4581ef2..4236f724e0347583ed58aa13d8887993d947030c 100644
--- a/core/modules/tour/tests/tour_test/config/install/tour.tour.tour-test.yml
+++ b/core/modules/tour/tests/tour_test/config/install/tour.tour.tour-test.yml
@@ -30,8 +30,6 @@ tips:
     label: 'The awesome image'
     url: 'http://local/image.png'
     weight: 1
-    attributes:
-      data-id: tour-test-3
   tour-test-6:
     id: tour-test-6
     plugin: text