bolt-magento2 icon indicating copy to clipboard operation
bolt-magento2 copied to clipboard

getSignResponse may return null in Helper/Cart and result in nonexistent member function error

Open jsamhall opened this issue 2 years ago • 0 comments

Currently on version 2.26.0 but issue appears present upstream as well

In Helper/Cart, the private function getSignResponse may return null in the event of an issue with API: image

That possibility is ignored in calling code in the method getHints: image

When this occurs, a CRITICAL level system log is issued:

 main.CRITICAL: Error: Call to a member function getResponse() on null in /.../vendor/boltpay/bolt-magento2/Helper/Cart.php:1084

jsamhall avatar Dec 12 '22 14:12 jsamhall