Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getLink() on null in /var/www/src/AppBundle/Controller/NewsController.php:59 Stack trace: #0 [internal function]: AppBundle\Controller\NewsController->newsItemAction(Object(Sonata\PageBundle\Request\SiteRequest), 'streamity-news-...') #1 /var/www/app/bootstrap.php.cache(3221): call_user_func_array(Array, Array) #2 /var/www/app/bootstrap.php.cache(3180): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Sonata\PageBundle\Request\SiteRequest), 1) #3 /var/www/app/bootstrap.php.cache(3334): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Sonata\PageBundle\Request\SiteRequest), 1, true) #4 /var/www/app/bootstrap.php.cache(2540): Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(Object(Sonata\PageBundle\Request\SiteRequest), 1, true) #5 /var/www/web/app.php(32): Symfony\Component\HttpKernel\Kernel->handle(Object(Sonata\PageBundle\Request\SiteRequest)) #6 {main} thrown in /var/www/src/AppBundle/Controller/NewsController.php on line 59

Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalErrorException: Error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getLink() on null in /var/www/src/AppBundle/Controller/NewsController.php:59 Stack trace: #0 [internal function]: AppBundle\Controller\NewsController->newsItemAction(Object(Sonata\PageBundle\Request\SiteRequest), 'streamity-news-...') #1 /var/www/app/bootstrap.php.cache(3221): call_user_func_array(Array, Array) #2 /var/www/app/bootstrap.php.cache(3180): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Sonata\PageBundle\Request\SiteRequest), 1) #3 /var/www/app/bootstrap.php.cache(3334): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Sonata\PageBundle\Request\SiteRequest), 1, true) #4 /var/www/app/bootstrap.php.cache(2540): Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(Object(Sonata\PageBundle\Request\SiteRequest), 1, true) #5 /var/www/web/app.php(32): Symfony\Component\HttpKernel\Kernel->handle(Objec in /var/www/src/AppBundle/Controller/NewsController.php on line 59