Changeset 93fb57


Ignore:
Timestamp:
Apr 9, 2015, 11:48:47 AM (6 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
9807bd
Parents:
2c040b
Message:

prevent error on missing defaultIdentity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/vI_account.js

    r2c040b r93fb57  
    476476    case "2":
    477477      Log.debug("preparing Templates --- use Settings of Default Account");
    478       account._account.defaultIdentity.stationeryFolder = account._AccountManager.defaultAccount.defaultIdentity.stationeryFolder;
    479       account._account.defaultIdentity.tmplFolderPickerMode = account._AccountManager.defaultAccount.defaultIdentity.tmplFolderPickerMode;
    480       break;
     478      try {
     479        // if no defaultIdentity (received bug-report) use Settings of Modified Account instead
     480        account._account.defaultIdentity.stationeryFolder = account._AccountManager.defaultAccount.defaultIdentity.stationeryFolder;
     481        account._account.defaultIdentity.tmplFolderPickerMode = account._AccountManager.defaultAccount.defaultIdentity.tmplFolderPickerMode;
     482        break;
     483      } catch (e) {
     484        Log.debug("something went wrong while trying to access default Identity");
     485        Log.debug(e);
     486      }
    481487    case "3":
    482488      Log.debug("preparing Templates --- use Settings of Modified Account");
Note: See TracChangeset for help on using the changeset viewer.