diff --git a/vendor/magento/module-checkout/Model/Session.php b/vendor/magento/module-checkout/Model/Session.php index 3a2beb3b437..d143cd66770 100644 --- a/vendor/magento/module-checkout/Model/Session.php +++ b/vendor/magento/module-checkout/Model/Session.php @@ -486,7 +486,9 @@ class Session extends \Magento\Framework\Session\SessionManager */ public function clearQuote() { - $this->_eventManager->dispatch('checkout_quote_destroy', ['quote' => $this->getQuote()]); + if ($this->_quote !== null) { + $this->_eventManager->dispatch('checkout_quote_destroy', ['quote' => $this->_quote]); + } $this->_quote = null; $this->setQuoteId(null); $this->setLastSuccessQuoteId(null);