What is the purpose of this issue? Explain the background context.
Resolve the error:
Call to a member function getProductIds() on null
Which i sometimes see in the error logs.
Environment
PHP Version: (8.1)
Magento Version: 2.4.6-p6
Tweakwise Version: 6.0.1
Tweakwise Export Version: 7.0.1
Magento Deploy Mode: production
Third party modules:
Trace does not have any third party modules visible.
Steps to reproduce
\Tweakwise\Magento2Tweakwise\Model\Catalog\Layer\NavigationContext:getResponse returns null which is possible when looking at the function return type.
Issue Brief
What is the purpose of this issue? Explain the background context.
Resolve the error: Call to a member function getProductIds() on null
Which i sometimes see in the error logs.
Environment
Steps to reproduce
$response = $this->navigationContext->getResponse(); return $response->getProductIds();
Actual result
Expected result
Possible solution