Skip to content

Commit

Permalink
DataFilter - Avoid crash when evaluate(spec, dr) is called on a malfo…
Browse files Browse the repository at this point in the history
…rmed expression

Reported at the forum, easily reproducible creating a KPI tile
in Trends Overview Chart.
The added check is already present in remaining evaluate versions.
  • Loading branch information
amtriathlon committed Oct 12, 2021
1 parent 0e8d452 commit 289962c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Core/DataFilter.cpp
Expand Up @@ -3116,6 +3116,8 @@ Result DataFilter::evaluate(RideItem *item, RideFilePoint *p)

Result DataFilter::evaluate(Specification spec, DateRange dr)
{
if (!treeRoot || DataFiltererrors.count()) return Result(0);

Result res(0);

// if we are a set of functions..
Expand Down

0 comments on commit 289962c

Please sign in to comment.