File tree 1 file changed +6
-0
lines changed
app/code/Magento/Sales/Model
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,9 @@ public function get($id)
157
157
private function setOrderTaxDetails (OrderInterface $ order )
158
158
{
159
159
$ extensionAttributes = $ order ->getExtensionAttributes ();
160
+ if ($ extensionAttributes === null ) {
161
+ $ extensionAttributes = $ this ->orderExtensionFactory ->create ();
162
+ }
160
163
$ orderTaxDetails = $ this ->orderTaxManagement ->getOrderTaxDetails ($ order ->getEntityId ());
161
164
$ appliedTaxes = $ orderTaxDetails ->getAppliedTaxes ();
162
165
@@ -180,6 +183,9 @@ private function setOrderTaxDetails(OrderInterface $order)
180
183
private function setPaymentAdditionalInfo (OrderInterface $ order ): void
181
184
{
182
185
$ extensionAttributes = $ order ->getExtensionAttributes ();
186
+ if ($ extensionAttributes === null ) {
187
+ $ extensionAttributes = $ this ->orderExtensionFactory ->create ();
188
+ }
183
189
$ paymentAdditionalInformation = $ order ->getPayment ()->getAdditionalInformation ();
184
190
185
191
$ objects = [];
You can’t perform that action at this time.
0 commit comments