Skip to content

Commit

Permalink
Handle NULL Indexer Deploy Config
Browse files Browse the repository at this point in the history
  • Loading branch information
pykettk authored Feb 27, 2023
1 parent bbcecdf commit f35d4d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/IndexerConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function getIndexerConfig(): array
{
if (!$this->indexerConfig) {
try {
$this->indexerConfig = $this->deploymentConfig->get('indexers');
$this->indexerConfig = $this->deploymentConfig->get('indexers') ?? [];
} catch (FileSystemException|RunTimeException $e) {
$this->logger->error(__('Could not load indexer configuration from app/etc/config.php'));
$this->indexerConfig = [];
Expand Down

0 comments on commit f35d4d6

Please sign in to comment.