Skip to content

Commit

Permalink
Add null check to support unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaksn committed Oct 17, 2024
1 parent 708e10a commit e8f3a3c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ private readonly ConcurrentDictionary<FullName, List<ResourceProperty>>
public bool TryGetIdentificationCodeProperties(Resource resource,
out List<ResourceProperty> identificationCodeProperties)
{
if (resource.Entity == null)
{
identificationCodeProperties = null;
return false;
}

identificationCodeProperties = _identificationCodePropertiesByRootResourceFullName.GetOrAdd(
resource.Entity.FullName, _ =>
{
Expand Down

0 comments on commit e8f3a3c

Please sign in to comment.