support the case filter value is null

This commit is contained in:
Slim Bouguerra 2015-08-17 15:09:37 -05:00
parent f0bc362981
commit 7549f02578
2 changed files with 1 additions and 2 deletions

View File

@ -43,7 +43,6 @@ public class ExtractionDimFilter implements DimFilter
)
{
Preconditions.checkArgument(dimension != null, "dimension must not be null");
Preconditions.checkArgument(value != null, "value must not be null");
Preconditions.checkArgument(extractionFn != null || dimExtractionFn != null, "extraction function must not be null");
this.dimension = dimension;

View File

@ -46,7 +46,7 @@ public class ExtractionFilter implements Filter
public ExtractionFilter(String dimension, String value, ExtractionFn fn)
{
this.dimension = dimension;
this.value = value;
this.value = Strings.nullToEmpty(value);
this.fn = fn;
}