Skip to content

Commit

Permalink
#99: fix nullref
Browse files Browse the repository at this point in the history
  • Loading branch information
eggwhat committed Jan 11, 2024
1 parent 7a2edbf commit 2779175
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ public GetParcelExpirationStatusHandler(IMongoRepository<InquiryOfferDocument, G
public async Task<ExpirationStatusDto> HandleAsync(GetParcelExpirationStatus query, CancellationToken cancellationToken)
{
var document = await _repository.GetAsync(v => v.Id == query.ParcelId);
if(document is null)
{
return null;
}
var dto = new ExpirationStatusDto()
{
ParcelId = document.InquiryId,
Expand Down

0 comments on commit 2779175

Please sign in to comment.