Commit c4eb51e0 authored by Ralf Engels's avatar Ralf Engels
Browse files

Fix another crash with playlists. MTP playlist this time.

BUG: 297816
FIXED-IN: 2.6
parent 352c20df
......@@ -7,7 +7,7 @@ VERSION 2.6
BUGFIXES:
* Fix problems when sql server is not reachable (BR 298425)
* Fix crash with exporting playlists with invalid tracks (BR 303056 and BR 302607)
* Fix crash with exporting playlists with invalid tracks (BR 303056 and BR 302607 and BR 297816)
VERSION 2.6-RC
CHANGES:
......
......@@ -866,6 +866,8 @@ MtpHandler::libSavePlaylist( const Playlists::MediaDevicePlaylistPtr &playlist,
uint32_t i = 0;
foreach( Meta::TrackPtr trk, tracklist )
{
if( !trk ) // playlists might contain invalid tracks. see BUG: 297816
continue;
Meta::MediaDeviceTrackPtr track = Meta::MediaDeviceTrackPtr::staticCast( trk );
tracks[i] = m_mtpTrackHash.value( track )->item_id;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment