Fatal error: Uncaught Error: Call to a member function getId() on null in /home/devhendi/public_html/app/design/frontend/Piranha/default/Magento_Catalog/templates/category/top_category.phtml:5 Stack trace: #0 /home/devhendi/public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include() #1 /home/devhendi/public_html/vendor/magento/framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Framework\View\Element\Template\Interceptor), '/home/devhendi/...', Array) #2 /home/devhendi/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Element\Template->fetchView('/home/devhendi/...') #3 /home/devhendi/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Element\Template\Interceptor->___callParent('fetchView', Array) #4 /home/devhendi/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Element\Template\Interceptor->Magento\Framework\Interc in /home/devhendi/public_html/app/design/frontend/Piranha/default/Magento_Catalog/templates/category/top_category.phtml on line 5