mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 20:00:13 +02:00
Don't crash when listening along if a result in a sourceplaylistinterface's next is not valid
This commit is contained in:
@@ -241,7 +241,9 @@ AudioEngine::canGoNext()
|
||||
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() );
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user