From 540db2860e811dce0b5366a548e20697410f5ad8 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Sat, 25 Feb 2012 11:59:47 -0500 Subject: [PATCH] fix a crash --- src/libtomahawk/accounts/LastFmAccount.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libtomahawk/accounts/LastFmAccount.cpp b/src/libtomahawk/accounts/LastFmAccount.cpp index b22cafd9c..f4ade6a5f 100644 --- a/src/libtomahawk/accounts/LastFmAccount.cpp +++ b/src/libtomahawk/accounts/LastFmAccount.cpp @@ -127,7 +127,7 @@ LastFmAccount::configurationWidget() Account::ConnectionState LastFmAccount::connectionState() const { - return m_resolver.data()->running() ? Account::Connected : Account::Disconnected; + return (!m_resolver.isNull() && m_resolver.data()->running()) ? Account::Connected : Account::Disconnected; }