From 5848e7ba8c34152f1ee79847409943c37e348a7d Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Fri, 9 Mar 2012 16:31:23 -0500 Subject: [PATCH] Debug and safety --- src/libtomahawk/accounts/LastFmAccount.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/accounts/LastFmAccount.cpp b/src/libtomahawk/accounts/LastFmAccount.cpp index fb4c97ec4..643e92251 100644 --- a/src/libtomahawk/accounts/LastFmAccount.cpp +++ b/src/libtomahawk/accounts/LastFmAccount.cpp @@ -93,7 +93,9 @@ LastFmAccount::authenticate() } else if ( m_resolver.isNull() ) { - AtticaManager::instance()->installResolver( res, false ); + qDebug() << "Got null resolver but asked to authenticate, so installing i we have one from attica:" << res.isValid() << res.id(); + if ( res.isValid() && !res.id().isEmpty() ) + AtticaManager::instance()->installResolver( res, false ); } else {