Skip to content

Commit

Permalink
nullable config value
Browse files Browse the repository at this point in the history
  • Loading branch information
zygis0408 committed Dec 12, 2022
1 parent bb49cd8 commit 2b98399
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public override IEnumerable<IExternalSearchQuery> BuildQueries(ExecutionContext
}
private IEnumerable<IExternalSearchQuery> InternalBuildQueries(ExecutionContext context, IExternalSearchRequest request, IDictionary<string, object> config = null)
{
if (config.TryGetValue(Constants.KeyName.AcceptedEntityType, out var customType) && !string.IsNullOrWhiteSpace(customType.ToString()))
if (config.TryGetValue(Constants.KeyName.AcceptedEntityType, out var customType) && !string.IsNullOrWhiteSpace(customType?.ToString()))
{
if (!request.EntityMetaData.EntityType.Is(customType.ToString()))
{
Expand Down

0 comments on commit 2b98399

Please sign in to comment.