From 6d6f51fdb6fffbf12a20631a73b6978d02986b1d Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Wed, 5 Oct 2011 17:54:47 -0400 Subject: [PATCH] TWK-532: Don't assert on a null artist, we can get artists we don't know about from resolver search results --- src/libtomahawk/playlist/treemodel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/playlist/treemodel.cpp b/src/libtomahawk/playlist/treemodel.cpp index d3ebdc11f..28f4543c0 100644 --- a/src/libtomahawk/playlist/treemodel.cpp +++ b/src/libtomahawk/playlist/treemodel.cpp @@ -827,7 +827,9 @@ TreeModel::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData, QV InfoSystem::InfoCriteriaHash inputInfo; inputInfo = requestData.input.value< InfoSystem::InfoCriteriaHash >(); artist_ptr artist = Artist::get( inputInfo[ "artist" ], false ); - Q_ASSERT( !artist.isNull() ); + + if ( artist.isNull() ) + return; foreach ( const QString& albumName, albums ) {