From 725f6c48f9f275fdd6548e6cca48eaa0a27dd263 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Thu, 16 Aug 2012 10:03:00 -0400 Subject: [PATCH] Pointer guard --- src/accounts/xmpp/XmppAccount.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(); }