Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Return value of MutuelleFr\TarificateurBundle\Services\ProvenanceProfilService::getActualProvenance() must be an instance of MutuelleFr\TarificateurBundle\Entity\Provenance, null returned in /var/www/mutuelle/src/MutuelleFr/TarificateurBundle/Services/ProvenanceProfilService.php:275 Stack trace: #0 /var/www/mutuelle/src/MutuelleFr/TarificateurBundle/Services/ProvenanceHelper.php(30): MutuelleFr\TarificateurBundle\Services\ProvenanceProfilService->getActualProvenance() #1 /var/www/mutuelle/app/Resources/views/rd/gtm_snippet.html.php(21): MutuelleFr\TarificateurBundle\Services\ProvenanceHelper->getProvenance() #2 /var/www/mutuelle/vendor/symfony/symfony/src/Symfony/Component/Templating/PhpEngine.php(150): require('/var/www/mutuel...') #3 /var/www/mutuelle/vendor/symfony/symfony/src/Symfony/Component/Templating/PhpEngine.php(78): Symfony\Component\Templating\PhpEngine->evaluate(NULL, NULL) #4 /var/www/mutuelle/app/Resources/views/layout_rd.html.php(13): Symfony\Component\Templating\PhpEngine->render('::rd/gtm_snippe...') #5 /var/www/mutuelle/vendor/symfony/symfony/src/Symfony/Component/Templating/PhpEngine.php(150): require('/var/www/mutuel...') #6 /var/www/mutuelle/vendor/symfony/symfony/src/Symfony/Component/Templating/PhpEngine.php(78): Symfony\Component\Templating\PhpEngine->evaluate(NULL, NULL) #7 /var/www/mutuelle/vendor/symfony/symfony/src/Symfony/Component/Templating/PhpEngine.php(88): Symfony\Component\Templating\PhpEngine->render('::layout_rd.htm...', Array) #8 /var/www/mutuelle/vendor/symfony/symfony/src/Symfony/Component/Templating/PhpEngine.php(88): Symfony\Component\Templating\PhpEngine->render('::layout.html.p...', Array) #9 /var/www/mutuelle/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Templating/PhpEngine.php(74): Symfony\Component\Templating\PhpEngine->render('::exception.htm...', Array) #10 /var/www/mutuelle/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Templating/DelegatingEngine.php(51): Symfony\Bundle\FrameworkBundle\Templating\PhpEngine->renderResponse('::exception.htm...', Array, Object(Symfony\Component\HttpFoundation\Response)) #11 /var/www/mutuelle/src/MutuelleFr/UtilBundle/Controller/ExceptionController.php(33): Symfony\Bundle\FrameworkBundle\Templating\DelegatingEngine->renderResponse('::exception.htm...', Array) #12 /var/www/mutuelle/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(135): MutuelleFr\UtilBundle\Controller\ExceptionController->showAction(Object(Symfony\Component\Debug\Exception\FlattenException), Object(Symfony\Bridge\Monolog\Logger), 'html') #13 /var/www/mutuelle/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(57): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(MutuelleFr\UtilBundle\Request\XssRequestFilter), 2) #14 /var/www/mutuelle/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php(67): Symfony\Component\HttpKernel\HttpKernel->handle(Object(MutuelleFr\UtilBundle\Request\XssRequestFilter), 2, false) #15 /var/www/mutuelle/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php(55): Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(Object(MutuelleFr\UtilBundle\Request\XssRequestFilter), 2, false) #16 /var/www/mutuelle/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(184): Symfony\Component\HttpKernel\EventListener\ExceptionListener->onKernelException(Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent), 'kernel.exceptio...', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher)) #17 /var/www/mutuelle/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'kernel.exceptio...', Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent)) #18 /var/www/mutuelle/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(212): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('kernel.exceptio...', Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent)) #19 /var/www/mutuelle/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(89): Symfony\Component\HttpKernel\HttpKernel->handleException(Object(Symfony\Component\Debug\Exception\FatalThrowableError), Object(MutuelleFr\UtilBundle\Request\XssRequestFilter), 1) #20 /var/www/mutuelle/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php(105): Symfony\Component\HttpKernel\HttpKernel->terminateWithException(Object(Symfony\Component\Debug\Exception\FatalThrowableError), Object(MutuelleFr\UtilBundle\Request\XssRequestFilter)) #21 /var/www/mutuelle/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php(623): Symfony\Component\HttpKernel\EventListener\DebugHandlersListener->Symfony\Component\HttpKernel\EventListener\{closure}(Object(Symfony\Component\Debug\Exception\FatalThrowableError)) #22 [internal function]: Symfony\Component\Debug\ErrorHandler->handleException(Object(Symfony\Component\Debug\Exception\FatalThrowableError)) #23 {main} thrown in /var/www/mutuelle/src/MutuelleFr/TarificateurBundle/Services/ProvenanceProfilService.php on line 275