Skip to content

Commit

Permalink
Fix UserChartData SEGV when no ride selected
Browse files Browse the repository at this point in the history
.. edge case but common for new users with no data.
  • Loading branch information
liversedge committed Jun 22, 2021
1 parent 586033c commit 58c8b98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Charts/UserChartData.cpp
Expand Up @@ -54,7 +54,7 @@ UserChartData::~UserChartData()
void
UserChartData::compute(RideItem *item, Specification spec, DateRange dr)
{
if (!root) return;
if (!root || item == NULL) return;

// clear rt indexes
rt->indexes.clear();
Expand Down

0 comments on commit 58c8b98

Please sign in to comment.