mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-28 03:17:31 +09:00
Bug 342632 - Allow defaultAccount to return success with nullptr result when there is no usable account.
Tag #1273
This commit is contained in:
parent
07b587d4ed
commit
af2693fe73
11 changed files with 121 additions and 101 deletions
|
|
@ -770,9 +770,16 @@ nsBeckyFilters::CollectServers()
|
|||
nsCOMPtr<nsIMsgAccount> defaultAccount;
|
||||
rv = accountManager->GetDefaultAccount(getter_AddRefs(defaultAccount));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
if (defaultAccount)
|
||||
return defaultAccount->GetIncomingServer(getter_AddRefs(mServer));
|
||||
|
||||
nsCOMPtr<nsIMsgIncomingServer> server;
|
||||
return defaultAccount->GetIncomingServer(getter_AddRefs(mServer));
|
||||
// We can also import filters into the Local Folders account.
|
||||
rv = accountManager->GetLocalFoldersServer(getter_AddRefs(mServer));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
if (!mServer)
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue