grid filters - fix regexfiltervm null ref

This commit is contained in:
John Colvin committed 2018-03-13 14:14:41 -04:00
1 parent 33e170c392
commit 30a4fb90bc
1 file changed
+2 -2
@@ -23,8 +23,8 @@ namespace mbts.spark.filters {
public override string get_state() => _text ?? string.Empty;
protected override bool _get_active() => !string.IsNullOrWhiteSpace(_text);
protected override bool _filter(string value) => _regex.IsMatch(value);
protected override bool _get_active() => _regex != null;
protected override bool _filter(string value) => _regex != null && _regex.IsMatch(value);
protected override void _load_state_internal(string state) => text = state;
protected override void _clear() {
_text = string.Empty;