Error thrown

Call to a member function dot_recommend() on null