From fcd73d2fe9a856b5bde304330af53c7a94cf327d Mon Sep 17 00:00:00 2001 From: "timeless@mozdev.org" Date: Mon, 1 Feb 2010 21:38:23 +0000 Subject: [PATCH] Bug 541387 [@ nsPop3IncomingServer::GetDeferredToAccount] Thunderbird will not start. r=bienvenu,sr=Standard8 --- mailnews/local/src/nsPop3IncomingServer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mailnews/local/src/nsPop3IncomingServer.cpp b/mailnews/local/src/nsPop3IncomingServer.cpp index 09ba10a8e3..630e81eb5c 100644 --- a/mailnews/local/src/nsPop3IncomingServer.cpp +++ b/mailnews/local/src/nsPop3IncomingServer.cpp @@ -224,6 +224,9 @@ NS_IMETHODIMP nsPop3IncomingServer::GetDeferredToAccount(nsACString& aRetVal) } rv = acctMgr->FindAccountForServer(localServer, getter_AddRefs(localAccount)); NS_ENSURE_SUCCESS(rv, rv); + if (!localAccount) + return NS_ERROR_NOT_AVAILABLE; + localAccount->GetKey(aRetVal); // Can't call SetDeferredToAccount because it calls GetDeferredToAccount. return SetCharValue("deferred_to_account", aRetVal);