Fix possible null pointer dereference (#4813).
authorCarl Hetherington <carl@carlh.net>
Sat, 7 Apr 2012 10:05:17 +0000 (10:05 +0000)
committerCarl Hetherington <carl@carlh.net>
Sat, 7 Apr 2012 10:05:17 +0000 (10:05 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@11814 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/session.cc

index 624e5df13d62645b8f53fc536b9985d965d539dd..edb8ba80cf6456719da7f391bb71701ac41d2a92 100644 (file)
@@ -4364,7 +4364,7 @@ Session::start_time_changed (framepos_t old)
 
        Location* l = _locations->auto_loop_location ();
 
-       if (l->start() == old) {
+       if (l && l->start() == old) {
                l->set_start (s->start(), true);
        }
 }