Skip to content

[Issue] Fix iterate on null #30830

Closed
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #30822: Fix iterate on null


Preconditions (*)

Magento 2.4-develop
If there is no carriers available on the store (no carriers modules), an iteration on null occurs.

Steps to reproduce

  • Disable shipping modules:
    image
  • Create simple product
  • Go to storefront
  • Add product to cart
  • Go to checkout page

Expected result (*)

  1. No errors is shown on checkout shipping page
    image
  2. Message "Sorry, no quotes are available for this order at this time" is shown
    image

Actual result (*)

  1. Blank checkout page
  2. Error "array_keys() expects parameter 1 to be array, null given" is recorded into exception.log
    image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: ShippingFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions