Error Call to a member function getNome() on null