Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getId() on null in /home/users/constancecare/public_html/constancecare.pl-20200330/src/App/FrontendBundle/Controller/NewsController.php:21 Stack trace: #0 /home/users/constancecare/public_html/constancecare.pl-20200330/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(151): App\FrontendBundle\Controller\NewsController->indexAction('aktualno\xEF\xBF\xBD\xEF\xBF\xBDc...', Object(Symfony\Component\HttpFoundation\Request)) #1 /home/users/constancecare/public_html/constancecare.pl-20200330/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #2 /home/users/constancecare/public_html/constancecare.pl-20200330/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(200): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, tr in /home/users/constancecare/public_html/constancecare.pl-20200330/app/Resources/TwigBundle/views/Exception/error500.html.twig on line 13