1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 17:29:42 +01:00

Don't crash if artist is missing from chart album data

This commit is contained in:
Leo Franchi 2013-04-15 14:08:09 -04:00
parent bd46cc2f72
commit a8a10cb9b5

View File

@ -73,6 +73,9 @@ ChartDataLoader::go()
foreach ( const Tomahawk::InfoSystem::InfoStringHash& album, m_data )
{
if ( album["artist"].isEmpty() )
continue;
artist_ptr artistPtr = Artist::get( album[ "artist" ], false );
album_ptr albumPtr = Album::get( artistPtr, album[ "album" ], false );
album_ptrs << albumPtr;