diff --git a/src/Microsoft.Extensions.Configuration.AzureAppConfiguration/FeatureManagement/FeatureFlagOptions.cs b/src/Microsoft.Extensions.Configuration.AzureAppConfiguration/FeatureManagement/FeatureFlagOptions.cs index 3f03c57a..856a7bd6 100644 --- a/src/Microsoft.Extensions.Configuration.AzureAppConfiguration/FeatureManagement/FeatureFlagOptions.cs +++ b/src/Microsoft.Extensions.Configuration.AzureAppConfiguration/FeatureManagement/FeatureFlagOptions.cs @@ -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; }