BUGFIX: Don't index null records

* Check null beside false for db result.
This commit is contained in:
Daniel Siepmann 2017-05-11 09:16:24 +02:00
parent 8bea39217e
commit 350f906016
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -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