Error: Call to a member function getParams() on null: Unknown Task