Fix null pointer exception

This commit is contained in:
Björn Fromme
2019-06-07 14:42:09 +02:00
parent 4758908e60
commit 5fed619018
@@ -43,7 +43,7 @@ class FaqRepository extends AbstractRepository
public function findByUids($uids) public function findByUids($uids)
{ {
/** @var DataMapper $dataMapper */ /** @var DataMapper $dataMapper */
$dataMapper = GeneralUtility::makeInstance(DataMapper::class); $dataMapper = $this->objectManager->get(DataMapper::class);
$qb = $this->getDbConnection()->createQueryBuilder(); $qb = $this->getDbConnection()->createQueryBuilder();
$rows = $qb $rows = $qb