Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getId() on null in /home/corsusa/public_html/staffcorsusa/src/WebBundle/Controller/DefaultController.php:717 Stack trace: #0 /home/corsusa/public_html/staffcorsusa/src/WebBundle/Controller/DefaultController.php(140): WebBundle\Controller\DefaultController->getCategoriasByIndustriaMarca(Object(AdminBundle\Entity\Industrias), NULL) #1 [internal function]: WebBundle\Controller\DefaultController->productosAction('quimica-y-petro...', 'master-valve-us...', '') #2 /home/corsusa/public_html/staffcorsusa/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(144): call_user_func_array(Array, Array) #3 /home/corsusa/public_html/staffcorsusa/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(64): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #4 /home/corsusa/public_html/staffcorsusa/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/ in /home/corsusa/public_html/staffcorsusa/src/WebBundle/Controller/DefaultController.php on line 717