Changeset a760b3


Ignore:
Timestamp:
Jul 7, 2011, 7:21:35 PM (9 years ago)
Author:
rene <rene@…>
Branches:
ng_0.8, ng_0.9
Children:
cb0162
Parents:
76e35c
Message:

check if addon is not null before calling

File:
1 edited

Legend:

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

    r76e35c ra760b3  
    4848        prefroot.setBoolPref("extensions.virtualIdentity." + switch_signature_ID, false)
    4949        AddonManager.getAddonByID(switch_signature_ID, function(addon) {
    50             prefroot.setBoolPref("extensions.virtualIdentity." + switch_signature_ID, addon.userDisabled || addon.appDisabled ? false : true)
     50            if (addon) prefroot.setBoolPref("extensions.virtualIdentity." + switch_signature_ID, addon.userDisabled || addon.appDisabled ? false : true)
    5151        });
    5252       
     
    5454        prefroot.setBoolPref("extensions.virtualIdentity." + enigmail_ID, false)
    5555        AddonManager.getAddonByID(enigmail_ID, function(addon) {
    56             prefroot.setBoolPref("extensions.virtualIdentity." + enigmail_ID, addon.userDisabled || addon.appDisabled ? false : true)
     56            if (addon) prefroot.setBoolPref("extensions.virtualIdentity." + enigmail_ID, addon.userDisabled || addon.appDisabled ? false : true)
    5757        });
    5858       
Note: See TracChangeset for help on using the changeset viewer.