File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
app/code/Magento/Sales/Model Expand file tree Collapse file tree 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)
157157 private function setOrderTaxDetails (OrderInterface $ order )
158158 {
159159 $ extensionAttributes = $ order ->getExtensionAttributes ();
160+ if ($ extensionAttributes === null ) {
161+ $ extensionAttributes = $ this ->orderExtensionFactory ->create ();
162+ }
160163 $ orderTaxDetails = $ this ->orderTaxManagement ->getOrderTaxDetails ($ order ->getEntityId ());
161164 $ appliedTaxes = $ orderTaxDetails ->getAppliedTaxes ();
162165
@@ -180,6 +183,9 @@ private function setOrderTaxDetails(OrderInterface $order)
180183 private function setPaymentAdditionalInfo (OrderInterface $ order ): void
181184 {
182185 $ extensionAttributes = $ order ->getExtensionAttributes ();
186+ if ($ extensionAttributes === null ) {
187+ $ extensionAttributes = $ this ->orderExtensionFactory ->create ();
188+ }
183189 $ paymentAdditionalInformation = $ order ->getPayment ()->getAdditionalInformation ();
184190
185191 $ objects = [];
You can’t perform that action at this time.
0 commit comments