1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-13 20:41:58 +02:00

* Return null result when trying to create one without a url.

This commit is contained in:
Christian Muehlhaeuser 2013-04-29 05:29:11 +02:00
parent ee2a71a09f
commit 9b53dc5c4e

View File

@ -55,6 +55,12 @@ sourceCacheKey( Resolver* resolver, const QSize& size, TomahawkUtils::ImageMode
Tomahawk::result_ptr
Result::get( const QString& url )
{
if ( url.trimmed().isEmpty() )
{
// Q_ASSERT( false );
return result_ptr();
}
QMutexLocker lock( &s_mutex );
if ( s_results.contains( url ) )
{