Skip to content

orderRepository does not check if there are no extensionAttributes #26526

Closed
@PascalBrouwers

Description

@PascalBrouwers

Preconditions (*)

  1. Magento 2.4-develop

Steps to reproduce (*)

  1. Have an order which has no extensionAttributes
  2. Try to load the order using orderRepository by \Magento\Sales\Api\OrderRepositoryInterface::get

Expected result (*)

  1. Order is loaded

Actual result (*)

  1. Error: Call to a member function setAppliedTaxes() on null

Screenshot from 2020-09-14 10-07-52

Metadata

Metadata

Labels

Component: SalesFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneReported on 2.4.0Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S1Affects critical data or functionality and forces users to employ a workaround.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions