summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/ardour/tempo.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc
index e5671a01c4..ce629df3e0 100644
--- a/libs/ardour/tempo.cc
+++ b/libs/ardour/tempo.cc
@@ -4258,6 +4258,12 @@ TempoMap::tempo_section_at_beat_locked (const Metrics& metrics, const double& be
}
}
+
+ if (prev_t == 0) {
+ fatal << endmsg;
+ abort(); /*NOTREACHED*/
+ }
+
return *prev_t;
}
@@ -4435,6 +4441,12 @@ TempoMap::meter_section_at_beat_locked (const Metrics& metrics, const double& be
}
}
+
+ if (prev_m == 0) {
+ fatal << endmsg;
+ abort(); /*NOTREACHED*/
+ }
+
return *prev_m;
}