diff --git a/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php b/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php index e989470..76ef7fb 100644 --- a/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php +++ b/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php @@ -59,7 +59,7 @@ public function __construct($collection, Connection $connection, $table = 'key_v * Performs garbage collection as needed when destructing the storage object. */ public function __destruct() { - if ($this->needsGarbageCollection) { + if ($this->needsGarbageCollection && $this->connection->schema()->tableExists($this->table)) { $this->garbageCollection(); } }