Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 1 passed to AppBundle\Service\HreflangService::getCorrectLanguage() must be of the type string, null given, called in /home/sntxxabc/kontron-snt/src/AppBundle/Service/HreflangService.php on line 41 in /home/sntxxabc/kontron-snt/src/AppBundle/Service/HreflangService.php:48 Stack trace: #0 /home/sntxxabc/kontron-snt/src/AppBundle/Service/HreflangService.php(41): AppBundle\Service\HreflangService->getCorrectLanguage(NULL) #1 /home/sntxxabc/kontron-snt/src/CW/PimcoreBundle/Controller/FrontendController.php(55): AppBundle\Service\HreflangService->getHreflangHtml(Object(Pimcore\Model\Document\Page)) #2 /home/sntxxabc/kontron-snt/pimcore/lib/Pimcore/Bundle/CoreBundle/EventListener/EventedControllerListener.php(51): CW\PimcoreBundle\Controller\FrontendController->onKernelController(Object(Symfony\Component\HttpKernel\Event\FilterControllerEvent)) #3 /home/sntxxabc/kontron-snt/vendor/symfony/symfony/src/Symfony/Component/EventDispatch in /home/sntxxabc/kontron-snt/src/AppBundle/Service/HreflangService.php on line 48