Merge branch 'hotfix/nullpointer-exception-fix'

This commit is contained in:
Björn Fromme
2020-11-17 11:59:29 +01:00
@@ -87,8 +87,8 @@ class MapController extends ActionController
foreach ($products as $product)
{
/** @var \EP\EpProducts\Domain\Model\Product $product */
$hotel = reset($product->getHotels()->toArray());
if (!$hotel->isShowAsTeaser()) {
$hotel = $product->getHotels()->current();
if (null === $hotel || false === $hotel->isShowAsTeaser()) {
continue;
}
$markerData[] = [