From 5fed619018e6031b855be13a7f9175f8026f3a8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Fri, 7 Jun 2019 14:42:09 +0200 Subject: [PATCH] Fix null pointer exception --- .../ext/ep_products/Classes/Domain/Repository/FaqRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Domain/Repository/FaqRepository.php b/public/typo3conf/ext/ep_products/Classes/Domain/Repository/FaqRepository.php index 354db01d..49f8f7fd 100644 --- a/public/typo3conf/ext/ep_products/Classes/Domain/Repository/FaqRepository.php +++ b/public/typo3conf/ext/ep_products/Classes/Domain/Repository/FaqRepository.php @@ -43,7 +43,7 @@ class FaqRepository extends AbstractRepository public function findByUids($uids) { /** @var DataMapper $dataMapper */ - $dataMapper = GeneralUtility::makeInstance(DataMapper::class); + $dataMapper = $this->objectManager->get(DataMapper::class); $qb = $this->getDbConnection()->createQueryBuilder(); $rows = $qb