diff --git a/mail/base/content/folderDisplay.js b/mail/base/content/folderDisplay.js index bc620a2f6d..8bc7a615b4 100644 --- a/mail/base/content/folderDisplay.js +++ b/mail/base/content/folderDisplay.js @@ -893,7 +893,9 @@ FolderDisplayWidget.prototype = { } // update the quick-search relative to whether it's incoming/outgoing - document.getElementById("searchInput").folderChanged(this.view.isOutgoingFolder) + let searchInput = document.getElementById("searchInput"); + if (searchInput) + searchInput.folderChanged(this.view.isOutgoingFolder) if (this.active) this.makeActive();