A user's groups field is not initialized correctly because it's automacially done and initialized to null instead of an empty array.