Guard against even MORE nullptr dereference (should fix #2153 again)

This commit is contained in:
Charles Dang 2017-11-10 00:32:11 +11:00
parent e41534d114
commit a77c40f105

View file

@ -262,6 +262,10 @@ static bool track_ok(const std::string& id)
{
LOG_AUDIO << "Considering " << id << "\n";
if(!current_track) {
return false;
}
// If they committed changes to list, we forget previous plays, but
// still *never* repeat same track twice if we have an option.
if(id == current_track->file_path()) {