From 839197e9022dd2b5fdaf995da42fa5a802a85d9a Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Tue, 23 Apr 2013 12:39:45 +0200 Subject: [PATCH] * Don't crash when we couldn't retrieve the playlist. --- src/libtomahawk/database/DatabaseCommand_DeletePlaylist.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/database/DatabaseCommand_DeletePlaylist.cpp b/src/libtomahawk/database/DatabaseCommand_DeletePlaylist.cpp index 0e6f34dca..7fc38f64a 100644 --- a/src/libtomahawk/database/DatabaseCommand_DeletePlaylist.cpp +++ b/src/libtomahawk/database/DatabaseCommand_DeletePlaylist.cpp @@ -61,8 +61,8 @@ DatabaseCommand_DeletePlaylist::postCommitHook() playlist_ptr playlist = source()->dbCollection()->playlist( m_playlistguid ); Q_ASSERT( !playlist.isNull() ); - - playlist->reportDeleted( playlist ); + if ( playlist ) + playlist->reportDeleted( playlist ); if( source()->isLocal() ) Servent::instance()->triggerDBSync();