diff --git a/app/code/Magento/Bundle/Pricing/Adjustment/Calculator.php b/app/code/Magento/Bundle/Pricing/Adjustment/Calculator.php index 894a2497b453a..6b3f180935556 100644 --- a/app/code/Magento/Bundle/Pricing/Adjustment/Calculator.php +++ b/app/code/Magento/Bundle/Pricing/Adjustment/Calculator.php @@ -316,9 +316,11 @@ protected function calculateDynamicBundleAmount($basePriceValue, $bundleProduct, foreach ($selectionPriceList as $selectionPrice) { ++$i; - $amountList[$i]['amount'] = $selectionPrice->getAmount(); - // always honor the quantity given - $amountList[$i]['quantity'] = $selectionPrice->getQuantity(); + if ($selectionPrice) { + $amountList[$i]['amount'] = $selectionPrice->getAmount(); + // always honor the quantity given + $amountList[$i]['quantity'] = $selectionPrice->getQuantity(); + } } /** @var Store $store */