diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index e3c73de3fba2..820c89c25f8c 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -560,7 +560,9 @@ function delayedStartup() } } else { // We couldn't get the shell service; go hide the mail toolbar button. - document.getElementById("mail-button").hidden = true; + var mailbutton = document.getElementById("mail-button"); + if (mailbutton) + mailbutton.hidden = true; } #endif