mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-23 01:09:42 +01:00
* Extra safety check.
This commit is contained in:
parent
eea4c2f46e
commit
e58afe435d
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user