Exception detected!

Error: Call to a member function getUrl() on a non-object

500 Internal Server Error - FatalErrorException

Stack Trace

  1. in src/MaciejJeziorski/OSKLawPerfectBundle/Controller/PublicationsController.php at line 66  -
    1.         $article $em->getRepository('MaciejJeziorskiOSKLawPerfectBundle:Article')->findOneByShortcut($shortcut);
    2.         
    3.         // Przekierowanie "w razie gdyby" coś nawaliło
    4.         if( null != $article->getUrl() ) {
    5.             return $this->redirect$article->getUrl() );
    6.         }
    7.         

Logs  -

Stack Trace (Plain Text)  +