mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Fix crash; pointer safety!
This commit is contained in:
@@ -327,6 +327,11 @@ AudioEngine::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData,
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ! m_currentTrack ||
|
||||
!m_currentTrack->track() ||
|
||||
!m_currentTrack->artist()||
|
||||
!m_currentTrack->album() )
|
||||
|
||||
QVariantMap playInfo;
|
||||
playInfo["message"] = QString( "Tomahawk is playing \"%1\" by %2 on album %3." )
|
||||
.arg( m_currentTrack->track() )
|
||||
|
Reference in New Issue
Block a user