diff --git a/public/typo3conf/ext/ep_products/Classes/Service/ContingentImportService.php b/public/typo3conf/ext/ep_products/Classes/Service/ContingentImportService.php index 7b2c2dbd..b5d0a880 100644 --- a/public/typo3conf/ext/ep_products/Classes/Service/ContingentImportService.php +++ b/public/typo3conf/ext/ep_products/Classes/Service/ContingentImportService.php @@ -271,6 +271,9 @@ class ContingentImportService implements SingletonInterface, LoggerAwareInterfac $roomTypeBusProId = $roomType['link'] ?: $roomType['idBusPro']; $xpath = sprintf('zimmerliste/zimmer[@idbuspro="%d"]', $roomTypeBusProId); $xmlRoom = $xmlDate->xpath($xpath)[0]; + if (null === $xmlRoom) { + continue; + } $this->calculateContingent($xmlRoom, $roomType, $date, $hotelData); } $dateCount++;