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.
Issue fork commerce_klarna_payments-3278371
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
Comment #3
didebruComment #4
tcrawford commentedWe have tested at @DiDebru's fix and it works for us. Thank you.
Comment #5
tcrawford commentedComment #7
tuutti commentedLooks good. Thanks!