mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Prevent null_ptr crashes.
This commit is contained in:
@@ -145,9 +145,14 @@ DatabaseCommand_Resolve::resolve( DatabaseImpl* lib )
|
|||||||
}
|
}
|
||||||
|
|
||||||
track_ptr track = Track::get( files_query.value( 9 ).toUInt(), files_query.value( 12 ).toString(), files_query.value( 14 ).toString(), files_query.value( 13 ).toString(), files_query.value( 5 ).toUInt(), files_query.value( 15 ).toString(), files_query.value( 17 ).toUInt(), files_query.value( 11 ).toUInt() );
|
track_ptr track = Track::get( files_query.value( 9 ).toUInt(), files_query.value( 12 ).toString(), files_query.value( 14 ).toString(), files_query.value( 13 ).toString(), files_query.value( 5 ).toUInt(), files_query.value( 15 ).toString(), files_query.value( 17 ).toUInt(), files_query.value( 11 ).toUInt() );
|
||||||
|
if ( !track )
|
||||||
|
continue;
|
||||||
track->loadAttributes();
|
track->loadAttributes();
|
||||||
|
|
||||||
result = Result::get( url, track );
|
result = Result::get( url, track );
|
||||||
|
if ( !result )
|
||||||
|
continue;
|
||||||
|
|
||||||
result->setModificationTime( files_query.value( 1 ).toUInt() );
|
result->setModificationTime( files_query.value( 1 ).toUInt() );
|
||||||
result->setSize( files_query.value( 2 ).toUInt() );
|
result->setSize( files_query.value( 2 ).toUInt() );
|
||||||
result->setMimetype( files_query.value( 4 ).toString() );
|
result->setMimetype( files_query.value( 4 ).toString() );
|
||||||
|
Reference in New Issue
Block a user