diff --git a/src/app/code/Komoju/Payments/Observer/RestoreAfterCancel.php b/src/app/code/Komoju/Payments/Observer/RestoreAfterCancel.php index 5b2e0e708..8783cbc11 100644 --- a/src/app/code/Komoju/Payments/Observer/RestoreAfterCancel.php +++ b/src/app/code/Komoju/Payments/Observer/RestoreAfterCancel.php @@ -31,7 +31,9 @@ public function execute(Observer $observer) if (!$lastRealQuoteId) { $quote = $observer->getEvent()->getQuote(); - $quote->setIsActive(true); + if ($quote) { + $quote->setIsActive(true); + } return; }