Skip to content

Commit

Permalink
fix: Fix null reference exception in the RegisterOrganization mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Kolchanov committed Oct 28, 2022
1 parent 8e70b22 commit f4833b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private async Task<RegisterOrganizationResult> ProcessRequestAsync(RegisterReque
_organizationValidator.ValidateAsync(organization)
};

foreach (var address in organization.Addresses)
foreach (var address in organization?.Addresses ?? new List<Address>())
{
validationTasks.Add(_addressValidator.ValidateAsync(address));
}
Expand Down

0 comments on commit f4833b0

Please sign in to comment.