Changeset c18efa


Ignore:
Timestamp:
Feb 20, 2008, 11:15:02 AM (14 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
1eee54
Parents:
1c7340
Message:

fix for problem with upgrade dialog stopping if addressbook is accessed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_storage.js

    r1c7340 rc18efa  
    308308            //~ var directory = vI_storage.rdfService.GetResource(searchUri).QueryInterface(Components.interfaces.nsIAbDirectory);
    309309           
    310             var AbView = Components.classes["@mozilla.org/addressbook/abview;1"].createInstance(Components.interfaces.nsIAbView);
    311             AbView.init(searchUri, true, null, "GeneratedName", "ascending");
     310            // just try the following steps, they might fail if addressbook wasn't configured the right way
     311            // not completely reproducible, but caused bug https://www.absorb.it/virtual-id/ticket/41
     312            try {
     313                var AbView = Components.classes["@mozilla.org/addressbook/abview;1"].createInstance(Components.interfaces.nsIAbView);
     314                AbView.init(searchUri, true, null, "GeneratedName", "ascending");
     315            } catch (ex) { break; };
    312316            var directory = AbView.directory;
    313317           
Note: See TracChangeset for help on using the changeset viewer.