Skip to content

Commit

Permalink
fix: possible NRE
Browse files Browse the repository at this point in the history
  • Loading branch information
ksavosteev committed Aug 28, 2024
1 parent 87f8e76 commit 8a9e3a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public async Task<QuoteAggregate> 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;
Expand Down

0 comments on commit 8a9e3a9

Please sign in to comment.