From ef91c968833702a47afba949e1ca60fd138a2891 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 7 Apr 2012 10:05:17 +0000 Subject: [PATCH] Fix possible null pointer dereference (#4813). git-svn-id: svn://localhost/ardour2/branches/3.0@11814 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/session.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 624e5df13d..edb8ba80cf 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -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); } }