зеркало из https://github.com/mozilla/pjs.git
fix crasher. now that there are no identities associated with
"local folders", we have to plug this hole.
This commit is contained in:
Родитель
adcc8c722c
Коммит
f903b3a5a0
|
@ -210,8 +210,8 @@ function onDeleteAccount() {
|
|||
|
||||
function saveAccount(accountValues, account)
|
||||
{
|
||||
var identity;
|
||||
var server;
|
||||
var identity = null;
|
||||
var server = null;
|
||||
|
||||
if (account) {
|
||||
identity = account.defaultIdentity;
|
||||
|
|
|
@ -266,9 +266,11 @@ nsMsgAccount::GetDefaultIdentity(nsIMsgIdentity * *aDefaultIdentity)
|
|||
rv = m_identities->GetElementAt(0, &idsupports);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = idsupports->QueryInterface(NS_GET_IID(nsIMsgIdentity),
|
||||
(void **)aDefaultIdentity);
|
||||
NS_RELEASE(idsupports);
|
||||
if (idsupports) {
|
||||
rv = idsupports->QueryInterface(NS_GET_IID(nsIMsgIdentity),
|
||||
(void **)aDefaultIdentity);
|
||||
NS_RELEASE(idsupports);
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче