diff --git a/src/VirtoCommerce.ProfileExperienceApiModule.Data/Commands/RegisterRequestCommandHandler.cs b/src/VirtoCommerce.ProfileExperienceApiModule.Data/Commands/RegisterRequestCommandHandler.cs index 8cf898a3..0d6d9d84 100644 --- a/src/VirtoCommerce.ProfileExperienceApiModule.Data/Commands/RegisterRequestCommandHandler.cs +++ b/src/VirtoCommerce.ProfileExperienceApiModule.Data/Commands/RegisterRequestCommandHandler.cs @@ -104,7 +104,7 @@ private async Task ProcessRequestAsync(RegisterReque _organizationValidator.ValidateAsync(organization) }; - foreach (var address in organization.Addresses) + foreach (var address in organization?.Addresses ?? new List
()) { validationTasks.Add(_addressValidator.ValidateAsync(address)); }