diff --git a/Classes/Domain/Index/Queue/UpdateHandler/GarbageHandler.php b/Classes/Domain/Index/Queue/UpdateHandler/GarbageHandler.php index 42e4cbd5a..c63033c46 100644 --- a/Classes/Domain/Index/Queue/UpdateHandler/GarbageHandler.php +++ b/Classes/Domain/Index/Queue/UpdateHandler/GarbageHandler.php @@ -241,18 +241,14 @@ protected function isRelatedQueueRecordMarkedAsIndexed(string $table, array $rec public function getRecordWithFieldRelevantForGarbageCollection(string $table, int $uid): ?array { $garbageCollectionRelevantFields = $this->tcaService->getVisibilityAffectingFieldsByTable($table); - try { - $queryBuilder = $this->getQueryBuilderForTable($table); - $queryBuilder->getRestrictions()->removeAll(); - $row = $queryBuilder - ->select(...GeneralUtility::trimExplode(',', $garbageCollectionRelevantFields, true)) - ->from($table) - ->where($queryBuilder->expr()->eq('uid', $queryBuilder->createNamedParameter($uid, \Doctrine\DBAL\ParameterType::INTEGER))) - ->executeQuery() - ->fetchAssociative(); - } catch (Throwable) { - $row = false; - } + $queryBuilder = $this->getQueryBuilderForTable($table); + $queryBuilder->getRestrictions()->removeAll(); + $row = $queryBuilder + ->select(...GeneralUtility::trimExplode(',', $garbageCollectionRelevantFields, true)) + ->from($table) + ->where($queryBuilder->expr()->eq('uid', $queryBuilder->createNamedParameter($uid, \Doctrine\DBAL\ParameterType::INTEGER))) + ->executeQuery() + ->fetchAssociative(); return is_array($row) ? $row : null; }