mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 16:29:43 +01:00
don;t crash if username is null
This commit is contained in:
parent
d30e5df23e
commit
04358fbafe
@ -791,9 +791,9 @@ 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
|
||||
{
|
||||
qDebug() << "LastFmPlugin::createScrobbler Session key is empty";
|
||||
|
Loading…
x
Reference in New Issue
Block a user