From 8bea39217edad5ae337c9d514965696e026f4bd6 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 26 Jan 2017 14:57:23 +0100 Subject: [PATCH] BUGFIX: Don't break if no more records exist --- Classes/Domain/Index/TcaIndexer.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Classes/Domain/Index/TcaIndexer.php b/Classes/Domain/Index/TcaIndexer.php index 9592b65..5cf6988 100644 --- a/Classes/Domain/Index/TcaIndexer.php +++ b/Classes/Domain/Index/TcaIndexer.php @@ -120,8 +120,11 @@ class TcaIndexer implements IndexerInterface '', (int) $offset . ',' . (int) $limit ); - $this->tcaTableService->filterRecordsByRootLineBlacklist($records); + if ($records === null) { + return null; + } + $this->tcaTableService->filterRecordsByRootLineBlacklist($records); foreach ($records as &$record) { $this->tcaTableService->prepareRecord($record); }