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 9cff299 commit 27f3eb1Copy full SHA for 27f3eb1
app/code/Magento/Sales/Model/Order/ShippingBuilder.php
@@ -80,7 +80,10 @@ public function create()
80
if ($this->order->getEntityId()) {
81
/** @var ShippingInterface $shipping */
82
$shipping = $this->shippingFactory->create();
83
- $shipping->setAddress($this->order->getShippingAddress());
+ $shippingAddress = $this->order->getShippingAddress();
84
+ if ($shippingAddress) {
85
+ $shipping->setAddress($shippingAddress);
86
+ }
87
$shipping->setMethod($this->order->getShippingMethod());
88
$shipping->setTotal($this->getTotal());
89
}
0 commit comments