diff --git a/entityqueue/src/Plugin/EntityQueueHandler/Simple.php b/entityqueue/src/Plugin/EntityQueueHandler/Simple.php
index 0d9e5dd2..b7f6db24 100644
--- a/entityqueue/src/Plugin/EntityQueueHandler/Simple.php
+++ b/entityqueue/src/Plugin/EntityQueueHandler/Simple.php
@@ -106,6 +106,11 @@ class Simple extends EntityQueueHandlerBase implements ContainerFactoryPluginInt
     // Simple queues have just one subqueue, so we can link directly to the edit
     // form.
     $subqueue = EntitySubqueue::load($this->queue->id());
+    if (!$subqueue) {
+    // If the subqueue doesn't exist, return empty operations to avoid errors.
+    // The subqueue will be created when the queue is properly initialized.
+      return [];
+    }
     $subqueue = $this->entityRepository->getTranslationFromContext($subqueue);
     $operations['edit_subqueue'] = [
       'title' => $this->t('Edit items'),