rem: if (!account.incomingServer.valid) return account; 
add: try { if (!account.incomingServer.valid) return account; } catch (ex) {  continue; } 
context: function getFirstInvalidAccount(accounts){    var numAccounts = accounts.Count();    for (var i=0; i<numAccounts; i++) {        var account = accounts.QueryElementAt(i, Components.interfaces.nsIMsgAccount);        if (!account.incomingServer.valid)            return account;        var identities = account.identities;        var numIdentities = identities.Count();        for (var j=0; j<numIdentities; j++) {            var identity = identities.QueryElementAt(j, Components.interfaces.nsIMsgIdentity);            if (!identity.valid)                return account        }    }    // none found    return null;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a8da46e89f1a06667ec961c6a3c35bc1bce0f23f/accountUtils.js/buggy/mailnews/base/prefs/resources/content/accountUtils.js