Exception detected!

Call to a member function getBuy() on null

500 Internal Server Error - FatalThrowableError

Stack Trace

  1. in src/SiteBundle/Controller/PageController.php at line 200  -
    1.                 'currencyTo' => $currencyTo->getId()
    2.             ));
    3.         if(empty($currencyItem->getBuy())){
    4.             $buy MainHelper::recalculateRate($currencyItem$currencyItem->getMarkUpFrom(), 'Buy'$this->getDoctrine()->getEntityManager());
    5.             $currencyItem->setBuy(sprintf('%.3F',$buy));
    6.         }
  2. at PageController ->currencyDetailAction ('aed-uah')
  3. at call_user_func_array (array(object(PageController), 'currencyDetailAction'), array('aed-uah'))
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 144  +
  4. at HttpKernel ->handleRaw (object(Request), '1')
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 64  +
  5. at HttpKernel ->handle (object(Request), '1', true)
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 69  +
  6. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 1505  +
  7. at Kernel ->handle (object(Request))
    in www/app.php at line 16  +

Logs  -

Stack Trace (Plain Text)  +