mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 23:26:40 +02:00
Don't crash if artist is missing from chart album data
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user