* #21631: manager: NULL check account before using it

This commit is contained in:
Tristan Matthews
2013-03-14 17:39:00 -04:00
parent 5b0453cc22
commit 044ab5585b

View File

@ -87,6 +87,8 @@ void
ManagerImpl::sendRegister(const std::string& accountID, bool enable)
{
Account* acc = getAccount(accountID);
if (!acc)
return;
acc->setEnabled(enable);
acc->loadConfig();