diff options
Diffstat (limited to 'mailnews/base/src/nsMessengerWinIntegration.cpp')
-rw-r--r-- | mailnews/base/src/nsMessengerWinIntegration.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mailnews/base/src/nsMessengerWinIntegration.cpp b/mailnews/base/src/nsMessengerWinIntegration.cpp index 98888fcb3..ff0c08041 100644 --- a/mailnews/base/src/nsMessengerWinIntegration.cpp +++ b/mailnews/base/src/nsMessengerWinIntegration.cpp @@ -1089,7 +1089,8 @@ nsMessengerWinIntegration::SetupInbox() nsCOMPtr <nsIMsgAccount> account; rv = accountManager->GetDefaultAccount(getter_AddRefs(account)); - if (NS_FAILED(rv)) { + NS_ENSURE_SUCCESS(rv, rv); + if (!account) { // this can happen if we launch mail on a new profile // we don't have a default account yet mDefaultAccountMightHaveAnInbox = false; |