Bug 607981 - Unified Inbox doesn't work anymore − no way to set it back up; r=bienvenu
authorJonathan Protzenko <jonathan.protzenko@gmail.com>
Fri, 29 Oct 2010 14:36:44 +0100
changeset 6613 e8e2938b6e53b707c549b8dc8163ee9bc4a45dd9
parent 6612 6eb853899d58440635fbd1c0e4bdefb4ed5ffaaf
child 6614 6ed4dbcb748f77be9f830a691606a303595bee11
push idunknown
push userunknown
push dateunknown
reviewersbienvenu
bugs607981
Bug 607981 - Unified Inbox doesn't work anymore − no way to set it back up; r=bienvenu
mailnews/base/src/virtualFolderWrapper.js
--- a/mailnews/base/src/virtualFolderWrapper.js
+++ b/mailnews/base/src/virtualFolderWrapper.js
@@ -157,18 +157,19 @@ VirtualFolderWrapper.prototype = {
    */
   get searchFolders() {
     let rdfService = Cc['@mozilla.org/rdf/rdf-service;1']
                        .getService(Ci.nsIRDFService);
     let virtualFolderUris =
       this.dbFolderInfo.getCharProperty("searchFolderUri").split("|");
     let folders = [];
     for each (let [, folderURI] in Iterator(virtualFolderUris)) {
-      folders.push(rdfService.GetResource(folderURI)
-                             .QueryInterface(Ci.nsIMsgFolder));
+      if (folderURI)
+        folders.push(rdfService.GetResource(folderURI)
+                               .QueryInterface(Ci.nsIMsgFolder));
     }
     return folders;
   },
   /**
    * Set the search folders that back this virtual folder.
    *
    * @param aFolders Either a "|"-delimited string of folder URIs or a list of
    *     nsIMsgFolders that fixIterator can traverse (JS array/nsIMutableArray/