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 1ed25a3 commit 5dfa719Copy full SHA for 5dfa719
app/code/Magento/Sales/Model/OrderRepository.php
@@ -281,7 +281,7 @@ public function save(\Magento\Sales\Api\Data\OrderInterface $entity)
281
if (!empty($shippingAssignments)) {
282
$shipping = array_shift($shippingAssignments)->getShipping();
283
$shippingAddress = $shipping->getAddress();
284
- $shippingEmail = $shippingAddress->getEmail();
+ $shippingEmail = ($shippingAddress !== null) ? $shippingAddress->getEmail() : null;
285
$shippingMethod = $shipping->getMethod();
286
$entity->setShippingAddress($shippingAddress);
287
$entity->setShippingMethod($shippingMethod);
0 commit comments