Skip to content

Commit

Permalink
Engine: Null check arguments passed to IndexService's constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethmyhra committed Sep 11, 2023
1 parent eb29824 commit 614f8f3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ public class IndexService : IIndexService

public IndexService(IFhirModel fhirModel, IIndexStore indexStore, ElementIndexer elementIndexer, ResourceResolver elementResolver)
{
_fhirModel = fhirModel;
_indexStore = indexStore;
_elementIndexer = elementIndexer;
_elementResolver = elementResolver;
_fhirModel = fhirModel ?? throw new ArgumentNullException(nameof(fhirModel));
_indexStore = indexStore ?? throw new ArgumentNullException(nameof(indexStore));
_elementIndexer = elementIndexer ?? throw new ArgumentNullException(nameof(elementIndexer));
_elementResolver = elementResolver ?? throw new ArgumentNullException(nameof(elementResolver));
}

public void Process(Entry entry)
Expand Down

0 comments on commit 614f8f3

Please sign in to comment.