From 996dac71a179b0742765d6d109ac2574b651a65e Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Wed, 26 Apr 2000 03:26:59 +0000 Subject: [PATCH] stop gap fix for #37202 --- .../resources/content/addressingWidgetOverlay.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mailnews/compose/resources/content/addressingWidgetOverlay.js b/mailnews/compose/resources/content/addressingWidgetOverlay.js index 84081856bfd..99fc8bd44a4 100644 --- a/mailnews/compose/resources/content/addressingWidgetOverlay.js +++ b/mailnews/compose/resources/content/addressingWidgetOverlay.js @@ -62,7 +62,14 @@ function Recipients2CompFields(msgCompFields) fieldValue = inputField.value; if (fieldValue != "") { - switch (awGetPopupElement(i).selectedItem.getAttribute("data")) + var data = "addr_to"; + try { + data = awGetPopupElement(i).selectedItem.getAttribute("data"); + } + catch (ex) { + dump("failed: " + ex + "\n"); + } + switch (data) { case "addr_to" : addrTo += to_Sep + fieldValue; to_Sep = ","; break; case "addr_cc" : addrCc += cc_Sep + fieldValue; cc_Sep = ","; break; @@ -411,4 +418,4 @@ function awTabFromRecipient(element, event) function awGetNumberOfRecipients() { return top.MAX_RECIPIENTS; -} \ No newline at end of file +}