Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getName() on null in /home/users/noweizolacje/eb/src/FrontBundle/Controller/CategoryController.php:163 Stack trace: #0 /home/users/noweizolacje/eb/vendor/symfony/http-kernel/HttpKernel.php(149): App\FrontBundle\Controller\CategoryController->itemAction(Object(Symfony\Component\HttpFoundation\Request), Object(Symfony\Bridge\Monolog\Logger), Object(App\FrontBundle\Lib\Home\ChosenGetter), Object(App\FrontBundle\Lib\Stat\StatSaver), Object(App\FrontBundle\Lib\Category\CategorySpacesGetter), NULL, 'kruszywa') #1 /home/users/noweizolacje/eb/vendor/symfony/http-kernel/HttpKernel.php(66): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #2 /home/users/noweizolacje/eb/vendor/symfony/http-kernel/Kernel.php(188): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #3 /home/users/noweizolacje/public_html/index.php(65): Symfo in /home/users/noweizolacje/eb/templates/base.html.twig on line 19