Error thrown

Call to a member function src() on null