From ac25423a1a02beea42c9859708368f8c72611971 Mon Sep 17 00:00:00 2001 From: "ajschult%verizon.net" Date: Sat, 1 Jul 2006 23:37:34 +0000 Subject: [PATCH] Bug 341436: Don't pass null to GetResource to avoid "ASSERTION: URI is empty: '!aURI.IsEmpty()'" patch by Alex Vincent , r+sr=Neil --- mailnews/base/resources/content/mail3PaneWindowCommands.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mailnews/base/resources/content/mail3PaneWindowCommands.js b/mailnews/base/resources/content/mail3PaneWindowCommands.js index 84212ab21ccb..d343d779be07 100644 --- a/mailnews/base/resources/content/mail3PaneWindowCommands.js +++ b/mailnews/base/resources/content/mail3PaneWindowCommands.js @@ -859,7 +859,10 @@ function IsRenameFolderEnabled() function IsCanSearchMessagesEnabled() { - var folder = GetMsgFolderFromUri(GetSelectedFolderURI(), false); + var folderURI = GetSelectedFolderURI(); + if (!folderURI) + return false; + var folder = GetMsgFolderFromUri(folderURI, false); var isVirtualFolder = folder.flags & MSG_FOLDER_FLAG_VIRTUAL; return folder.server.canSearchMessages && !isVirtualFolder; }