From 34fc8cb8a74c47e1c2acccb26f4a7c12b191f2ba Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Wed, 5 Mar 2003 21:33:05 +0000 Subject: [PATCH] fix for regression bug #196073 without a mail acct, Send menu items fail caused by my checkin for bug #99363 r/sr=bienvenu --- .../base/resources/content/mailNavigatorOverlay.xul | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mailnews/base/resources/content/mailNavigatorOverlay.xul b/mailnews/base/resources/content/mailNavigatorOverlay.xul index 18a50845d559..1f2d7cf5a968 100644 --- a/mailnews/base/resources/content/mailNavigatorOverlay.xul +++ b/mailnews/base/resources/content/mailNavigatorOverlay.xul @@ -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); } }