Fatal error: Call to a member function getCategory() on null in /homepages/22/d604267272/htdocs/src/GruponivCPH/ServiceBundle/Controller/DefaultController.php on line 145

Fatal error: Uncaught exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Error: Call to a member function getCategory() on null' in /homepages/22/d604267272/htdocs/src/GruponivCPH/ServiceBundle/Controller/DefaultController.php:145 Stack trace: #0 {main} Next exception 'InvalidArgumentException' with message 'Bundle "PirateAdventureAdminBundle" does not exist or it is not enabled. Maybe you forgot to add it in the registerBundles() method of your AppKernel.php file?' in /homepages/22/d604267272/htdocs/app/bootstrap.php.cache:2467 Stack trace: #0 /homepages/22/d604267272/htdocs/app/cache/prod/classes.php(756): Symfony\Component\HttpKernel\Kernel->getBundle('PirateAdventure...') #1 /homepages/22/d604267272/htdocs/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.php(83): Symfony\Bundle\FrameworkBundle\Templating\TemplateNameParser->parse('PirateAdventure...') #2 /homepages/22/d604267272/htdocs/vendor/twig/twig/lib/Twig/Loader/Filesystem.php(138): Symfony\Bundle\TwigBun in /homepages/22/d604267272/htdocs/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.php on line 91