Exception detected!

Call to a member function getDateClose() on null

500 Internal Server Error - FatalThrowableError

Stack Trace

  1. in src/AppBundle/Controller/AwardController.php at line 118  -
    1.     {        
    2.         $award $this->getDoctrine()->getManager()->getRepository(Award::class)->findOneBy(['canonical' => $name]);
    3.         $otherAwards $this->getDoctrine()->getManager()->getRepository(Award::class)
    4.             ->findByYear($award->getDateClose()->format("Y"), 1);
    5.     
    6.         $currentRound $this->get('app.util.award_round')->getCurrentRound();
    7.         if ($currentRound === 5) {
  2. at AwardController ->index ('mc_music_award_-_best_italian_whistler', object(Request))
  3. at call_user_func_array (array(object(AwardController), 'index'), array('mc_music_award_-_best_italian_whistler', object(Request)))
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 153  +
  4. at HttpKernel ->handleRaw (object(Request), '1')
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 68  +
  5. at HttpKernel ->handle (object(Request), '1', true)
    in var/bootstrap.php.cache at line 1447  +
  6. at Kernel ->handle (object(Request))
    in web/app.php at line 29  +

Logs  -

Stack Trace (Plain Text)  +