Error Call to a member function getRette() on null