mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
fix for regression bug #196073
without a mail acct, Send menu items fail caused by my checkin for bug #99363 r/sr=bienvenu
This commit is contained in:
parent
0443050ee9
commit
34fc8cb8a7
@ -38,7 +38,15 @@
|
||||
}
|
||||
var composeService = Components.classes["@mozilla.org/messengercompose;1"].getService(Components.interfaces.nsIMsgComposeService);
|
||||
if (composeService) {
|
||||
params.identity = composeService.defaultIdentity;
|
||||
// it is possible you won't have a default identity
|
||||
// like if you've never launched mail before on a new profile.
|
||||
// see bug #196073
|
||||
try {
|
||||
params.identity = composeService.defaultIdentity;
|
||||
}
|
||||
catch (ex) {
|
||||
params.identity = null;
|
||||
}
|
||||
composeService.OpenComposeWindowWithParams(null, params);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user