diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-11-10 22:51:10 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-11-10 22:51:10 -0500 |
commit | 5d21f962db500a22697221d985709d5f24fa27f5 (patch) | |
tree | 76abad17d6a77770009f6b19ea3cc2b3cb9e88aa /mailnews/compose/src/nsMsgComposeService.cpp | |
parent | 2fda56a84eca7a08f626704e81b5c4c571623e44 (diff) | |
download | uxp-5d21f962db500a22697221d985709d5f24fa27f5.tar.gz |
Bug 342632 - Allow defaultAccount to return success with nullptr result when there is no usable account.
Tag #1273
Diffstat (limited to 'mailnews/compose/src/nsMsgComposeService.cpp')
-rw-r--r-- | mailnews/compose/src/nsMsgComposeService.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mailnews/compose/src/nsMsgComposeService.cpp b/mailnews/compose/src/nsMsgComposeService.cpp index bc202b7df9..bec88f8fe3 100644 --- a/mailnews/compose/src/nsMsgComposeService.cpp +++ b/mailnews/compose/src/nsMsgComposeService.cpp @@ -619,7 +619,7 @@ nsMsgComposeService::GetDefaultIdentity(nsIMsgIdentity **_retval) rv = accountManager->GetDefaultAccount(getter_AddRefs(defaultAccount)); NS_ENSURE_SUCCESS(rv, rv); - return defaultAccount->GetDefaultIdentity(_retval); + return defaultAccount ? defaultAccount->GetDefaultIdentity(_retval) : NS_OK; } /* readonly attribute boolean logComposePerformance; */ |