13
0

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.
This commit is contained in:
Robin Gareus 2017-09-23 01:57:25 +02:00
parent e39a8b90d9
commit c724f3f82c

View File

@ -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();