1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 16:44:05 +02:00

fix a crash

This commit is contained in:
Leo Franchi
2012-02-25 11:59:47 -05:00
parent b2247febc1
commit 540db2860e

View File

@@ -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;
}