Error: Call to a member function getId() on null in /var/www/html/app/code/Tech9logy/Customcat/Plugin/Layer.php:24 Stack trace: #0 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Tech9logy\Customcat\Plugin\Layer->aroundGetProductCollection() #1 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Model\Layer\Search\Interceptor->Magento\Framework\Interception\{closure}() #2 /var/www/html/generated/code/Magento/Catalog/Model/Layer/Search/Interceptor.php(23): Magento\Catalog\Model\Layer\Search\Interceptor->___callPlugins() #3 /var/www/html/app/code/Amasty/Shopby/Model/Layer/FilterList.php(255): Magento\Catalog\Model\Layer\Search\Interceptor->getProductCollection() #4 /var/www/html/app/code/Amasty/Shopby/Model/Layer/FilterList.php(139): Amasty\Shopby\Model\Layer\FilterList->matchFilters() #5 /var/www/html/vendor/magento/module-layered-navigation/Block/Navigation.php(69): Amasty\Shopby\Model\Layer\FilterList->getFilters() #6 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(287): Magento\LayeredNavigation\Block\Navigation->_prepareLayout() #7 /var/www/html/vendor/magento/framework/View/Layout/Generator/Block.php(149): Magento\Framework\View\Element\AbstractBlock->setLayout() #8 /var/www/html/vendor/magento/framework/View/Layout/GeneratorPool.php(93): Magento\Framework\View\Layout\Generator\Block->process() #9 /var/www/html/vendor/magento/framework/View/Layout.php(365): Magento\Framework\View\Layout\GeneratorPool->process() #10 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Layout->generateElements() #11 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Layout\Interceptor->___callParent() #12 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() #13 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(32): Magento\Framework\View\Layout\Interceptor->___callPlugins() #14 /var/www/html/vendor/magento/framework/View/Layout/Builder.php(129): Magento\Framework\View\Layout\Interceptor->generateElements() #15 /var/www/html/vendor/magento/framework/View/Page/Builder.php(65): Magento\Framework\View\Layout\Builder->generateLayoutBlocks() #16 /var/www/html/vendor/magento/framework/View/Layout/Builder.php(65): Magento\Framework\View\Page\Builder->generateLayoutBlocks() #17 /var/www/html/vendor/magento/framework/View/Page/Config.php(224): Magento\Framework\View\Layout\Builder->build() #18 /var/www/html/vendor/magento/framework/View/Page/Config.php(237): Magento\Framework\View\Page\Config->build() #19 /var/www/html/vendor/magento/framework/App/View.php(170): Magento\Framework\View\Page\Config->publicBuild() #20 /var/www/html/vendor/magento/framework/App/View.php(114): Magento\Framework\App\View->loadLayoutUpdates() #21 /var/www/html/vendor/magento/module-catalog-search/Controller/Result/Index.php(137): Magento\Framework\App\View->loadLayout() #22 /var/www/html/vendor/magento/module-catalog-search/Controller/Result/Index.php(108): Magento\CatalogSearch\Controller\Result\Index->getCacheableResult() #23 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\CatalogSearch\Controller\Result\Index->execute() #24 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\CatalogSearch\Controller\Result\Index\Interceptor->___callParent() #25 /var/www/html/vendor/magento/framework/App/Action/Plugin/ActionFlagNoDispatchPlugin.php(51): Magento\CatalogSearch\Controller\Result\Index\Interceptor->Magento\Framework\Interception\{closure}() #26 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Framework\App\Action\Plugin\ActionFlagNoDispatchPlugin->aroundExecute() #27 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\CatalogSearch\Controller\Result\Index\Interceptor->Magento\Framework\Interception\{closure}() #28 /var/www/html/generated/code/Magento/CatalogSearch/Controller/Result/Index/Interceptor.php(23): Magento\CatalogSearch\Controller\Result\Index\Interceptor->___callPlugins() #29 /var/www/html/vendor/magento/framework/App/Action/Action.php(111): Magento\CatalogSearch\Controller\Result\Index\Interceptor->execute() #30 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch() #31 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\CatalogSearch\Controller\Result\Index\Interceptor->___callParent() #32 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\CatalogSearch\Controller\Result\Index\Interceptor->Magento\Framework\Interception\{closure}() #33 /var/www/html/generated/code/Magento/CatalogSearch/Controller/Result/Index/Interceptor.php(32): Magento\CatalogSearch\Controller\Result\Index\Interceptor->___callPlugins() #34 /var/www/html/vendor/magento/framework/App/FrontController.php(186): Magento\CatalogSearch\Controller\Result\Index\Interceptor->dispatch() #35 /var/www/html/vendor/magento/framework/App/FrontController.php(118): Magento\Framework\App\FrontController->processRequest() #36 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch() #37 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent() #38 /var/www/html/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(99): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() #39 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch() #40 /var/www/html/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(75): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() #41 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() #42 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() #43 /var/www/html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins() #44 /var/www/html/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch() #45 /var/www/html/generated/code/Magento/Framework/App/Http/Interceptor.php(23): Magento\Framework\App\Http->launch() #46 /var/www/html/vendor/magento/framework/App/Bootstrap.php(263): Magento\Framework\App\Http\Interceptor->launch() #47 /var/www/html/pub/index.php(29): Magento\Framework\App\Bootstrap->run() #48 {main}