diff --git a/Classes/Domain/Index/AbstractIndexer.php b/Classes/Domain/Index/AbstractIndexer.php index 47459b0..861c17a 100644 --- a/Classes/Domain/Index/AbstractIndexer.php +++ b/Classes/Domain/Index/AbstractIndexer.php @@ -137,7 +137,7 @@ abstract class AbstractIndexer implements IndexerInterface protected function prepareRecord(array &$record) { try { - $indexingConfiguration = $this->configuration->get('indexing.' . $this->identifier . '.dataProcessing'); + $indexingConfiguration = $this->configuration->getIfExists('indexing.' . $this->identifier . '.dataProcessing'); if (!empty($indexingConfiguration) && is_array($indexingConfiguration)) { foreach ($indexingConfiguration as $configuration) { @@ -170,7 +170,7 @@ abstract class AbstractIndexer implements IndexerInterface try { - $indexConfiguration = $this->configuration->get('indexing.' . $this->identifier . '.abstractFields'); + $indexConfiguration = $this->configuration->getIfExists('indexing.' . $this->identifier . '.abstractFields'); $fieldsToUse = GeneralUtility::trimExplode(',', $indexConfiguration); if ($fieldsToUse === []) { diff --git a/Classes/Domain/Index/IndexerFactory.php b/Classes/Domain/Index/IndexerFactory.php index f59632f..c730854 100644 --- a/Classes/Domain/Index/IndexerFactory.php +++ b/Classes/Domain/Index/IndexerFactory.php @@ -68,6 +68,8 @@ class IndexerFactory implements Singleton // Nothing to do, we throw exception below } catch (MissingArrayPathException $e) { // Nothing to do, we throw exception below + } catch (\RuntimeException $exception) { + // Nothing to do, we throw exception below } throw new NoMatchingIndexerException('Could not find an indexer for ' . $identifier, 1497341442);