diff --git a/src/DanielsPoints.cpp b/src/DanielsPoints.cpp index 4f1b3b981..ac32dd8d8 100644 --- a/src/DanielsPoints.cpp +++ b/src/DanielsPoints.cpp @@ -45,6 +45,8 @@ class DanielsPoints : public RideMetric { double value(bool) const { return score; } void compute(const RideFile *ride, const Zones *zones, int zoneRange, const QHash &) { + if (!zones) + return; static const double EPSILON = 0.1; static const double NEGLIGIBLE = 0.1;