mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Extra safety check.
This commit is contained in:
@@ -66,7 +66,7 @@ PlaylistInterface::siblingResult( int itemsAway ) const
|
||||
{
|
||||
safetyCheck = idx;
|
||||
Tomahawk::query_ptr query = queryAt( idx );
|
||||
if ( query->numResults() )
|
||||
if ( query && query->numResults() )
|
||||
{
|
||||
return query->results().first();
|
||||
}
|
||||
|
Reference in New Issue
Block a user