mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 21:27:58 +02:00
Don't crash if Query::get returns an invalid query
This commit is contained in:
@@ -175,6 +175,9 @@ AlbumPlaylistInterface::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData re
|
|||||||
foreach ( const QString& trackName, tracks )
|
foreach ( const QString& trackName, tracks )
|
||||||
{
|
{
|
||||||
query_ptr query = Query::get( inputInfo[ "artist" ], trackName, inputInfo[ "album" ] );
|
query_ptr query = Query::get( inputInfo[ "artist" ], trackName, inputInfo[ "album" ] );
|
||||||
|
if ( query.isNull() )
|
||||||
|
continue;
|
||||||
|
|
||||||
query->setAlbumPos( trackNo++ );
|
query->setAlbumPos( trackNo++ );
|
||||||
ql << query;
|
ql << query;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user