1
0
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:
Jeff Mitchell
2011-08-26 10:16:55 -04:00
parent b86f6301ff
commit a32ff26401

View File

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