Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getName() on null in /home/afdicq/symfony/src/ForumModule/EventListener/HttpNotFoundListener.php:25 Stack trace: #0 /home/afdicq/symfony/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(212): ForumModule\EventListener\HttpNotFoundListener->onKernelException(Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent), 'kernel.exceptio...', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher)) #1 /home/afdicq/symfony/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(44): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'kernel.exceptio...', Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent)) #2 /home/afdicq/symfony/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(228): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('kernel.exceptio...', Object(Symfony\Comp in /home/afdicq/symfony/src/ForumModule/EventListener/HttpNotFoundListener.php on line 25