fix startup crash if no loop range is defined
authorPaul Davis <paul@linuxaudiosystems.com>
Sat, 23 Nov 2019 20:37:00 +0000 (13:37 -0700)
committerPaul Davis <paul@linuxaudiosystems.com>
Sat, 23 Nov 2019 20:37:00 +0000 (13:37 -0700)
libs/ardour/session.cc

index 980dec8dcfd817db8450db8f4e4ef163ce0b1d85..d5579eb6fc36144fc181203ed9e461bb758220d8 100644 (file)
@@ -1411,6 +1411,10 @@ Session::auto_punch_changed (Location* location)
 void
 Session::auto_loop_changed (Location* location)
 {
+       if (!location) {
+               return;
+       }
+
        replace_event (SessionEvent::AutoLoop, location->end(), location->start());
 
        const bool rolling = transport_rolling ();