We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 48c391b + a2ed136 commit 8e9035cCopy full SHA for 8e9035c
app/code/Magento/Customer/Model/Customer.php
@@ -725,7 +725,7 @@ public function getPrimaryAddresses()
725
726
$primaryShipping = $this->getPrimaryShippingAddress();
727
if ($primaryShipping) {
728
- if ($primaryBilling->getId() == $primaryShipping->getId()) {
+ if ($primaryBilling && $primaryBilling->getId() == $primaryShipping->getId()) {
729
$primaryBilling->setIsPrimaryShipping(true);
730
} else {
731
$primaryShipping->setIsPrimaryShipping(true);
0 commit comments