1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 05:37:29 +02:00

Don't crash when listening along if a result in a sourceplaylistinterface's next is not valid

This commit is contained in:
Leo Franchi
2013-01-08 09:36:14 -05:00
parent 852af5737a
commit d66afb9ba3

View File

@@ -241,7 +241,9 @@ AudioEngine::canGoNext()
return false; return false;
} }
return ( m_currentTrack && m_playlist.data()->hasNextResult() && m_playlist.data()->nextResult()->isOnline() ); return ( m_currentTrack && m_playlist.data()->hasNextResult() &&
!m_playlist.data()->nextResult().isNull() &&
m_playlist.data()->nextResult()->isOnline() );
} }