You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error Report for
store.shopware.com/adyenpaymentshopware6:^3.13
file: store.shopware.com/adyenpaymentshopware6/src/Handlers/AbstractPaymentMethodHandler.php:663
Is:
Why:
product->getCategories() is a collection but might have no items. Unlike an empty array which is consider null, a collection without items is not null. This leads to an error on the next line, when the first item of an empty collection is taken (in this case null) and throws an php exception when trying to get getName() on null. (
The text was updated successfully, but these errors were encountered:
hossam-adyen
changed the title
AbstractPaymentMethodHandler NullPointer Exception for Products without Category/Categories
[ECP-8915] AbstractPaymentMethodHandler NullPointer Exception for Products without Category/Categories
Jan 19, 2024
Hi @thomaswiener , thanks for your valuable report, I've opened a PR for that fix and once it's reviewed and merged it will be included in the next release
Error Report for
store.shopware.com/adyenpaymentshopware6:^3.13
file: store.shopware.com/adyenpaymentshopware6/src/Handlers/AbstractPaymentMethodHandler.php:663
Is:
Should:
Why:
product->getCategories() is a collection but might have no items. Unlike an empty array which is consider null, a collection without items is not null. This leads to an error on the next line, when the first item of an empty collection is taken (in this case null) and throws an php exception when trying to get getName() on null. (
The text was updated successfully, but these errors were encountered: