Call to a member function getResort() on null