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