Skip to content

Commit

Permalink
Add LabelFilter null check for Feature Flags (#361)
Browse files Browse the repository at this point in the history
Fix #311
  • Loading branch information
avanigupta authored Oct 24, 2022
1 parent 60a3f25 commit ea239eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public FeatureFlagOptions Select(string featureFlagFilter, string labelFilter =
throw new ArgumentException(@"Feature flag filter should not end with '\*'.", nameof(featureFlagFilter));
}

if (labelFilter == null)
if (string.IsNullOrWhiteSpace(labelFilter))
{
labelFilter = LabelFilter.Null;
}
Expand Down

0 comments on commit ea239eb

Please sign in to comment.