diff options
author | Lucas Wojciechowski <lucas@mapbox.com> | 2018-04-10 15:11:35 -0700 |
---|---|---|
committer | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2018-05-09 16:06:10 -0700 |
commit | 2652219801fac3b4ba54083332bb66af67984301 (patch) | |
tree | bfc474302b3e7f5ae3834c3a808b2f18580dda58 /src/mbgl/style/filter_evaluator.cpp | |
parent | d8a57ec3f1bbe87e6aca0da72d0b40a08159dede (diff) | |
download | qtlocation-mapboxgl-2652219801fac3b4ba54083332bb66af67984301.tar.gz |
Make filter tests pass!
Diffstat (limited to 'src/mbgl/style/filter_evaluator.cpp')
-rw-r--r-- | src/mbgl/style/filter_evaluator.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mbgl/style/filter_evaluator.cpp b/src/mbgl/style/filter_evaluator.cpp index 72022172f4..adb452ccaa 100644 --- a/src/mbgl/style/filter_evaluator.cpp +++ b/src/mbgl/style/filter_evaluator.cpp @@ -213,6 +213,9 @@ bool FilterEvaluator::operator()(const NotHasIdentifierFilter&) const { } bool FilterEvaluator::operator()(const ExpressionFilter& filter) const { + // TODO What is our fallback behvaiour? + if (!filter.expression) return true; + const expression::EvaluationResult result = filter.expression->evaluate(context); if (result) { const optional<bool> typed = expression::fromExpressionValue<bool>(*result); |