From 350f90601649d5a7a577ee7f472767b7d9619c1b Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 11 May 2017 09:16:24 +0200 Subject: [PATCH] BUGFIX: Don't index null records * Check null beside false for db result. --- Classes/Domain/Index/TcaIndexer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Domain/Index/TcaIndexer.php b/Classes/Domain/Index/TcaIndexer.php index 5cf6988..b50c6fa 100644 --- a/Classes/Domain/Index/TcaIndexer.php +++ b/Classes/Domain/Index/TcaIndexer.php @@ -146,7 +146,7 @@ class TcaIndexer implements IndexerInterface . ' AND ' . $this->tcaTableService->getTableName() . '.uid = ' . (int) $identifier ); - if ($record === false) { + if ($record === false || $record === null) { throw new NoRecordFoundException( 'Record could not be fetched from database: "' . $identifier . '". Perhaps record is not active.', 1484225364