Changeset a36ab2


Ignore:
Timestamp:
Jan 18, 2013, 7:02:06 PM (9 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
cdbc54
Parents:
41d739
Message:

bugfix to continue work if incomingServer of identity is not set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/vI_account.js

    r41d739 ra36ab2  
    299299        // the incomingServer has to be replaced before the account is removed, else it get removed ether
    300300        var servers = account._AccountManager.GetServersForIdentity(baseIdentity);
    301         var server = servers.QueryElementAt(0, Ci.nsIMsgIncomingServer);
     301        try {
     302      var server = servers.QueryElementAt(0, Ci.nsIMsgIncomingServer);
     303    } catch (NS_ERROR_FAILURE) {
     304      Log.debug("createAccount missing incomingServer for baseIdentity, using default one");
     305      var server = account._AccountManager.defaultAccount.incomingServer;
     306    }
    302307        // we mark the server as invalid so that the account manager won't
    303308        // tell RDF about the new server - we don't need this server for long
Note: See TracChangeset for help on using the changeset viewer.