Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getId() on null in /var/www/src/Application/RouteSolvers/CertificadoEnergetico/CertificadoPorProvincia.php:38 Stack trace: #0 /var/www/src/Application/RouteSolvers/RouteSolversManager.php(387): App\Application\RouteSolvers\CertificadoEnergetico\CertificadoPorProvincia->match('certificado-ene...') #1 /var/www/src/Controller/MainController.php(48): App\Application\RouteSolvers\RouteSolversManager->matchRoute('certificado-ene...') #2 /var/www/vendor/symfony/http-kernel/HttpKernel.php(150): App\Controller\MainController->defaultAction(Object(Symfony\Component\HttpFoundation\Request), 'certificado-ene...') #3 /var/www/vendor/symfony/http-kernel/HttpKernel.php(67): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #4 /var/www/vendor/symfony/http-kernel/Kernel.php(198): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) in /var/www/src/Application/RouteSolvers/CertificadoEnergetico/CertificadoPorProvincia.php on line 38