Commit 3cfbc16f authored by David Faure's avatar David Faure
Browse files

Fix crash when m_enabledAccounts is still null.

parent f42da436
......@@ -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;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment