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:
parent
bd46cc2f72
commit
a8a10cb9b5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user