1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 09:19:41 +01:00

Don't crash if Query::get returns an invalid query

This commit is contained in:
Leo Franchi 2013-01-15 17:40:28 -05:00
parent f128055e0b
commit f2b9619dad

View File

@ -175,6 +175,9 @@ AlbumPlaylistInterface::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData re
foreach ( const QString& trackName, tracks )
{
query_ptr query = Query::get( inputInfo[ "artist" ], trackName, inputInfo[ "album" ] );
if ( query.isNull() )
continue;
query->setAlbumPos( trackNo++ );
ql << query;
}