summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2016-06-12 19:00:49 +0200
committerDavid Faure <[email protected]>2016-06-12 19:00:49 +0200
commit3cfbc16f7d761d6e1d6988a5d1666c12f1b48f82 (patch)
treefbe09a8b151ddf1e3200b8766d1a264010482ef8
parentf42da436e1a9e63c54436fab432a2f3c5886030d (diff)
Fix crash when m_enabledAccounts is still null.
-rw-r--r--KTp/global-presence.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/KTp/global-presence.cpp b/KTp/global-presence.cpp
index 8f1148b..0b751b1 100644
--- a/KTp/global-presence.cpp
+++ b/KTp/global-presence.cpp
@@ -323,7 +323,7 @@ void GlobalPresence::onConnectionStatusChanged()
bool GlobalPresence::hasEnabledAccounts() const
{
- if (m_enabledAccounts->accounts().isEmpty()) {
+ if (m_enabledAccounts.isNull() || m_enabledAccounts->accounts().isEmpty()) {
return false;
}