Fatal error: Uncaught Error: Call to a member function getId() on null in /zoohuculek/module/Catalog/src/Catalog/Controller/IndexController.php:365 Stack trace: #0 /zoohuculek/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractActionController.php(82): Catalog\Controller\IndexController->pokazAction() #1 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent)) #2 /zoohuculek/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent)) #3 /zoohuculek/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #4 /zoohuculek/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractController.php(118): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #5 /zoohuculek/vendor/zendframework/zendframework/l in /zoohuculek/module/Catalog/src/Catalog/Controller/IndexController.php on line 365