diff --git a/src/accounts/xmpp/XmppAccount.cpp b/src/accounts/xmpp/XmppAccount.cpp index 9dedb08d4..059053135 100644 --- a/src/accounts/xmpp/XmppAccount.cpp +++ b/src/accounts/xmpp/XmppAccount.cpp @@ -87,6 +87,9 @@ XmppAccount::isAuthenticated() const Account::ConnectionState XmppAccount::connectionState() const { + if ( m_xmppSipPlugin.isNull() ) + return Account::Disconnected; + return m_xmppSipPlugin.data()->connectionState(); }