Bail out if Playlist cannot be created
This prevents later crashes. Tracks cannot exist without a playlist.
This commit is contained in:
parent
003e68edd2
commit
300063c8b9
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user