Skip to content

Commit

Permalink
Don't crash when there are no recipients.
Browse files Browse the repository at this point in the history
  • Loading branch information
protz committed May 10, 2010
1 parent b25c647 commit e3b0804
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion content/selectionsummaries.js
Expand Up @@ -643,7 +643,10 @@ window.addEventListener("load", function f_temp0 () {
lastComma = comma;
}
}
recipientsNode.removeChild(lastComma);
if (lastComma)
recipientsNode.removeChild(lastComma);
else /* No recipients at all */
msgNode.getElementsByClassName("to-text")[0].style.display = "none";
/* We don't fill the sender here, as we may prefer more relevant
* information with the MimeMessage */

Expand Down

0 comments on commit e3b0804

Please sign in to comment.