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