Problem/Motivation

Error: Call to a member function getCurrencyCode() on null in Drupal\commerce_klarna_payments\ApiManager->orderIsInSync() (line 197 of /app/yr7j26hzhz3v6/docroot/modules/contrib/commerce_klarna_payments/src/ApiManager.php) #0

Steps to reproduce

Only reproducable with custom processors which will delete order items on the fly e.g. limited variations which are able to reserve and will than be deleted from other carts.

Proposed resolution

Check if the order has a total price.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

DiDebru created an issue. See original summary.

didebru’s picture

Status: Active » Needs review
tcrawford’s picture

We have tested at @DiDebru's fix and it works for us. Thank you.

tcrawford’s picture

Status: Needs review » Reviewed & tested by the community

  • aef508f committed on 8.x-2.x
    #3278371: Check order total not null.
    
tuutti’s picture

Status: Reviewed & tested by the community » Fixed

Looks good. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.