Call to a member function getController() on null