var yggdrasilAuthenticator = new YggdrasilAuthenticator
{
AuthServer = [AuthServer],
Email = [Email],
LauncherAccountParser = ...,
Password = [Password]
};
var profile = new AccountModel
{
AccessToken = result.AccessToken,
AccessTokenExpiresAt = DateTime.Now.AddHours(48),
EligibleForMigration = false,
HasMultipleProfiles = profiles.Count > 1,
Legacy = false,
LocalId = rUuid,
Persistent = true,
RemoteId = result.User.UUID.ToString(),
Type = "Mojang",
UserProperites = result.User?.Properties?.ToAuthProperties(profiles).ToArray() ??
Array.Empty<AuthPropertyModel>(),
Username = Email
};
was Null and caused an exception to be thrown.