Fatal error: Uncaught Error: Call to a member function getLevel() on null in /home/domkicom/public_html/app/code/DomkiModules/CustomModule/Block/Category.php:134 Stack trace: #0 /home/domkicom/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): DomkiModules\CustomModule\Block\Category->__construct(Object(Magento\Framework\Registry), Object(Magento\Framework\App\Request\Http), Object(Magento\Backend\Block\Template\Context), Object(Magento\Catalog\Model\ProductRepository\Interceptor), Object(Magento\Framework\App\ResourceConnection\Interceptor), Object(Magento\Catalog\Model\ResourceModel\Product\CollectionFactory), Object(Magento\Store\Model\StoreManager), Object(Magento\Catalog\Model\CategoryRepository\Interceptor), Object(Magento\Catalog\Model\CategoryFactory), Object(Magento\Catalog\Helper\Image), Object(Magento\Framework\Url), Array, Object(DomkiModules\CustomModule\Helper\Catalog)) #1 /home/domkicom/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): Ma in /home/domkicom/public_html/app/code/DomkiModules/CustomModule/Block/Category.php on line 134