Error: Call to a member function getParams() on null: Component not found.