Fatal error: Uncaught Error: Call to a member function getId() on null in /home/spigengo/public_html/app/code/Marvelic/CasecrazyMmegaMenu/Helper/Data.php:42 Stack trace: #0 /home/spigengo/public_html/app/design/frontend/Mgs/casecrazy/Magento_Theme/templates/html/header.phtml(56): Marvelic\CasecrazyMmegaMenu\Helper\Data->GetcategortyId() #1 /home/spigengo/public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/home/spigengo/...') #2 /home/spigengo/public_html/vendor/magento/framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Theme\Block\Html\Header\Interceptor), '/home/spigengo/...', Array) #3 /home/spigengo/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Element\Template->fetchView('/home/spigengo/...') #4 /home/spigengo/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Theme\Block\Html\Header\Interceptor->___callParent('fetchView', Array) #5 /home/spigengo/public_html/ in /home/spigengo/public_html/app/code/Marvelic/CasecrazyMmegaMenu/Helper/Data.php on line 42