diff --git a/Classes/Controller/Backend/Search/IndexQueueModuleController.php b/Classes/Controller/Backend/Search/IndexQueueModuleController.php index 4bb248d7a..d8685047f 100644 --- a/Classes/Controller/Backend/Search/IndexQueueModuleController.php +++ b/Classes/Controller/Backend/Search/IndexQueueModuleController.php @@ -336,6 +336,10 @@ protected function addIndexQueueFlashMessage(string $label, int $severity) */ protected function getIndexQueues(): array { + if ($this->selectedSite === null) { + return []; + } + $queues = []; $configuration = $this->selectedSite->getSolrConfiguration(); foreach ($configuration->getEnabledIndexQueueConfigurationNames() as $indexingConfiguration) {