1
0
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:
Christian Muehlhaeuser 2012-12-01 00:29:46 +01:00
parent eea4c2f46e
commit e58afe435d

View File

@ -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();
}