Error: Call to a member function getParams() on null: Componente não encontrado