mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02: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:
@@ -827,7 +827,9 @@ TreeModel::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData, QV
|
|||||||
InfoSystem::InfoCriteriaHash inputInfo;
|
InfoSystem::InfoCriteriaHash inputInfo;
|
||||||
inputInfo = requestData.input.value< InfoSystem::InfoCriteriaHash >();
|
inputInfo = requestData.input.value< InfoSystem::InfoCriteriaHash >();
|
||||||
artist_ptr artist = Artist::get( inputInfo[ "artist" ], false );
|
artist_ptr artist = Artist::get( inputInfo[ "artist" ], false );
|
||||||
Q_ASSERT( !artist.isNull() );
|
|
||||||
|
if ( artist.isNull() )
|
||||||
|
return;
|
||||||
|
|
||||||
foreach ( const QString& albumName, albums )
|
foreach ( const QString& albumName, albums )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user