From c724f3f82c53b0ec426bec322358ed2eccc52d58 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 23 Sep 2017 01:57:25 +0200 Subject: [PATCH] Fix crash in playlist selector for removed tracks. Removing a Track does not delete its playlists and one can keep Playlists after Cleanup. Don't crash if a the track that the playlist originally belonged to does no longer exist. --- gtk2_ardour/playlist_selector.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/playlist_selector.cc b/gtk2_ardour/playlist_selector.cc index 11d5d3a882..e58b69a818 100644 --- a/gtk2_ardour/playlist_selector.cc +++ b/gtk2_ardour/playlist_selector.cc @@ -123,7 +123,7 @@ PlaylistSelector::show_for (RouteUI* ruix) string nodename; - if (tr->name().empty()) { + if (!tr || tr->name().empty()) { nodename = _("unassigned"); } else { nodename = tr->name().c_str();