diff --git a/mailnews/base/resources/content/subscribe.js b/mailnews/base/resources/content/subscribe.js index 36e367d97d70..ad8adc1c2abf 100644 --- a/mailnews/base/resources/content/subscribe.js +++ b/mailnews/base/resources/content/subscribe.js @@ -340,7 +340,9 @@ function SubscribeOnClick(event) } else { var name = event.target.parentNode.parentNode.getAttribute('name'); - gNameField.setAttribute('value',name); + if (name && (name.length > 0)) { + gNameField.setAttribute('value',name); + } } } }