1
0
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:
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; 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();
} }