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