Call to a member function getFreeUserIds() on null