diff --git a/src/VirtoCommerce.QuoteModule.ExperienceApi/Commands/CreateQuoteCommandHandler.cs b/src/VirtoCommerce.QuoteModule.ExperienceApi/Commands/CreateQuoteCommandHandler.cs index d72a58fe..b0af0687 100644 --- a/src/VirtoCommerce.QuoteModule.ExperienceApi/Commands/CreateQuoteCommandHandler.cs +++ b/src/VirtoCommerce.QuoteModule.ExperienceApi/Commands/CreateQuoteCommandHandler.cs @@ -49,7 +49,7 @@ public async Task Handle(CreateQuoteCommand request, Cancellatio var contact = await GetContact(request.UserId); quote.CustomerName = contact?.Name; - quote.OrganizationId = request.CurrentOrganizationId ?? contact.DefaultOrganizationId; + quote.OrganizationId = request.CurrentOrganizationId ?? contact?.DefaultOrganizationId; var organization = await GetOrganization(quote.OrganizationId); quote.OrganizationName = organization?.Name;