Памылка 500

Call to a member function getUrl() on null