13
0

Bail out if Playlist cannot be created

This prevents later crashes. Tracks cannot exist without a playlist.
This commit is contained in:
Robin Gareus 2020-02-28 07:33:11 +01:00
parent 003e68edd2
commit 300063c8b9
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -484,6 +484,7 @@ SessionPlaylists::load (Session& session, const XMLNode& node)
if ((playlist = XMLPlaylistFactory (session, **niter)) == 0) {
error << _("Session: cannot create Playlist from XML description.") << endmsg;
return -1;
}
}