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.
1 parent d0131d7 commit a2ed136Copy full SHA for a2ed136
app/code/Magento/Customer/Model/Customer.php
@@ -719,7 +719,7 @@ public function getPrimaryAddresses()
719
720
$primaryShipping = $this->getPrimaryShippingAddress();
721
if ($primaryShipping) {
722
- if ($primaryBilling->getId() == $primaryShipping->getId()) {
+ if ($primaryBilling && $primaryBilling->getId() == $primaryShipping->getId()) {
723
$primaryBilling->setIsPrimaryShipping(true);
724
} else {
725
$primaryShipping->setIsPrimaryShipping(true);
0 commit comments