Ошибка (Error): Call to a member function getId() on null