add: if (!dir) return arr; 
context: function getAllApplications() {    var appsDir = this.getAppsHome();    var dir = appsDir.list();    var arr = new Array();    for (var i = 0; i < dir.length; i++) {        if (dir[i].toLowerCase() != "cvs" && dir[i].indexOf(".") == -1)            arr[arr.length] = this.getApp(dir[i]);    }    return arr;}
meta: 2504	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2504/c9463fe57a00323b2e2feb67eb8d46f5c9a53a10/functions.js/buggy/Root/functions.js