From 7bdb46368e82519defa09324ea4a998a1de456ed Mon Sep 17 00:00:00 2001 From: "jefft%netscape.com" Date: Tue, 4 Apr 2000 01:07:49 +0000 Subject: [PATCH] fixed bug 34383 - JS exception when selecting the twisty; r=scottip --- mailnews/base/resources/content/widgetglue.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mailnews/base/resources/content/widgetglue.js b/mailnews/base/resources/content/widgetglue.js index 6b70cbfd9729..fae4770f8ea5 100644 --- a/mailnews/base/resources/content/widgetglue.js +++ b/mailnews/base/resources/content/widgetglue.js @@ -67,7 +67,8 @@ var FolderPaneController = if ( command == "cmd_delete" ) goSetMenuValue(command, 'valueFolder'); var folderTree = GetFolderTree(); - if ( folderTree && folderTree.selectedItems ) + if ( folderTree && folderTree.selectedItems && + folderTree.selectedItems.length > 0) { var specialFolder = null; try {