mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-18 23:09:42 +01:00
Always check return-value of Track's & Result's get() method.
This commit is contained in:
parent
155e93069b
commit
5d1771a710
@ -144,12 +144,16 @@ DatabaseCommand_AllTracks::exec( DatabaseImpl* dbi )
|
||||
artist, track, album,
|
||||
duration, composer,
|
||||
albumpos, discnumber );
|
||||
if ( !t )
|
||||
continue;
|
||||
|
||||
if ( m_album || m_artist ) {
|
||||
if ( m_album || m_artist )
|
||||
t->loadAttributes();
|
||||
}
|
||||
|
||||
Tomahawk::result_ptr result = Tomahawk::Result::get( url, t );
|
||||
if ( !result )
|
||||
continue;
|
||||
|
||||
result->setSize( size );
|
||||
result->setBitrate( bitrate );
|
||||
result->setModificationTime( modificationTime );
|
||||
|
Loading…
x
Reference in New Issue
Block a user