Commit 217fbb7b authored by Ralf Engels's avatar Ralf Engels
Browse files

Fix Amarok crashes when trying to write a faulty playlist.

BUG: 303056
FIXED-IN: 2.7
parent 355c6324
......@@ -7,6 +7,7 @@ VERSION 2.7
BUGFIXES:
* Fix problems when sql server is not reachable (BR 298425)
* Fix crash with exporting playlists with invalid tracks (BR 303056)
VERSION 2.6-RC
CHANGES:
......
......@@ -230,7 +230,8 @@ M3UPlaylist::save( const KUrl &location, bool relative )
QList<int> lengths;
foreach( Meta::TrackPtr track, m_tracks )
{
Q_ASSERT(track);
if( !track ) // see BUG: 303056
continue;
const KUrl &url = track->playableUrl();
int length = track->length() / 1000;
......
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