1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

TWK-532: Don't assert on a null artist, we can get artists we don't know about from resolver search results

This commit is contained in:
Leo Franchi 2011-10-05 17:54:47 -04:00
parent 625a7b8fda
commit 6d6f51fdb6

@ -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 )
{