rem: if (accountData.incomingServer) { var server = accountData.incomingServer; 
add: if (!accountData) { dump("null account data! clearing..\n");       accountData = new Object; accountData.incomingServer = new Object; accountData.identity = new Object; accountData.smtp = new Object; }  var server = accountData.incomingServer;  if (server.type == undefined) {  setPageData(pageData, "accounttype", "mailaccount", undefined); setPageData(pageData, "accounttype", "newsaccount", undefined); setPageData(pageData, "server", "servertype", undefined); setPageData(pageData, "server", "hostname", undefined);  } else { 
context: function AccountDataToPageData(accountData, pageData){    if (accountData.incomingServer) {        var server = accountData.incomingServer;                if (server.type == "nntp") {            setPageData(pageData, "accounttype", "newsaccount", true);            setPageData(pageData, "newsserver", "hostname", server.hostName);        }                else {            setPageData(pageData, "accounttype", "mailaccount", true);            setPageData(pageData, "server", "servertype", server.type);            setPageData(pageData, "server", "hostname", server.hostName);        }                setPageData(pageData, "login", "username", server.username);        setPageData(pageData, "login", "password", server.password);        setPageData(pageData, "login", "rememberPassword", server.rememberPassword);        setPageData(pageData, "accname", "prettyName", server.prettyName);    }    var identity;        if (accountData.identity) {        dump("This is an accountdata\n");        identity = accountData.identity;    }    else if (accountData.identities) {        identity = accountData.identities.QueryElementAt(0, Components.interfaces.nsIMsgIdentity);        dump("this is an account, id= " + identity + "\n");    }    if (identity) {        setPageData(pageData, "identity", "email", identity.email);        setPageData(pageData, "identity", "fullName", identity.fullName);    }    if (accountData.smtp) {        setPageData(pageData, "server", "smtphostname",                    accountData.smtp.hostname);    }    }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3ceb1f86920113956b4c973be99cc148efaecb5f/AccountWizard.js/buggy/mailnews/base/prefs/resources/content/AccountWizard.js