Fatal error: Uncaught Error: Call to a member function getId() on null in /var/www/html/chloebeck/app/code/Xanka/Category/Helper/Data.php:149 Stack trace: #0 /var/www/html/chloebeck/var/view_preprocessed/pub/static/app/code/Xanka/Category/view/frontend/templates/html/sub-categories.phtml(1): Xanka\Category\Helper\Data->getSubCategoryListing() #1 /var/www/html/chloebeck/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/html/c...') #2 /var/www/html/chloebeck/vendor/magento/framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(Xanka\Category\Block\SubCategory), '/var/www/html/c...', Array) #3 /var/www/html/chloebeck/vendor/magento/framework/View/Element/Template.php(300): Magento\Framework\View\Element\Template->fetchView('/var/www/html/c...') #4 /var/www/html/chloebeck/vendor/magento/framework/View/Element/AbstractBlock.php(667): Magento\Framework\View\Element\Template->_toHtml() #5 /var/www/html/chloebeck/vendor/magento/framework/View/Layout.php(558): M in /var/www/html/chloebeck/app/code/Xanka/Category/Helper/Data.php on line 149