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

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;
}
......
Markdown is supported
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