mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
don;t crash if username is null
This commit is contained in:
@@ -791,7 +791,7 @@ LastFmPlugin::onAuthenticated()
|
||||
void
|
||||
LastFmPlugin::createScrobbler()
|
||||
{
|
||||
if ( m_account.isNull() )
|
||||
if ( m_account.isNull() || lastfm::ws::Username.isEmpty() )
|
||||
return;
|
||||
|
||||
if ( m_account.data()->sessionKey().isEmpty() ) // no session key, so get one
|
||||
|
Reference in New Issue
Block a user