Fatal error: Uncaught Error: Call to a member function addCategoryFilter() on null in /opt/lampp/htdocs/gardentulipflowers/app/code/Smartwave/Filterproducts/Block/Home/LatestList.php:57 Stack trace: #0 /opt/lampp/htdocs/gardentulipflowers/app/code/Smartwave/Filterproducts/Block/Home/LatestList.php(33): Smartwave\Filterproducts\Block\Home\LatestList->getProducts() #1 /opt/lampp/htdocs/gardentulipflowers/vendor/magento/module-catalog/Block/Product/ListProduct.php(187): Smartwave\Filterproducts\Block\Home\LatestList->_getProductCollection() #2 /opt/lampp/htdocs/gardentulipflowers/vendor/magento/framework/View/Element/AbstractBlock.php(666): Magento\Catalog\Block\Product\ListProduct->_beforeToHtml() #3 /opt/lampp/htdocs/gardentulipflowers/vendor/magento/module-email/Model/Template/Filter.php(426): Magento\Framework\View\Element\AbstractBlock->toHtml() #4 [internal function]: Magento\Email\Model\Template\Filter->blockDirective(Array) #5 /opt/lampp/htdocs/gardentulipflowers/vendor/magento/framework/Filter/DirectiveProcessor/Leg in /opt/lampp/htdocs/gardentulipflowers/app/code/Smartwave/Filterproducts/Block/Home/LatestList.php on line 57