rem: switch (prefB.getPrefType(aPrefName)) { case nsIPrefBranch.PREF_BOOL: return prefB.getBoolPref(aPrefName); case nsIPrefBranch.PREF_INT: return prefB.getIntPref(aPrefName); case nsIPrefBranch.PREF_STRING: return prefB.getCharPref(aPrefName); default: return aDefault; 
add: var value; try { switch (prefB.getPrefType(aPrefName)) { case nsIPrefBranch.PREF_BOOL: value = prefB.getBoolPref(aPrefName); break; case nsIPrefBranch.PREF_INT: value = prefB.getIntPref(aPrefName); break; case nsIPrefBranch.PREF_STRING: value = prefB.getCharPref(aPrefName); break; default: return aDefault; } return value; } catch(ex) { return aDefault; 
context: function getPrefSafe(aPrefName, aDefault) {    const nsIPrefBranch = Components.interfaces.nsIPrefBranch;    const prefB = Components.classes["@mozilla.org/preferences-service;1"]                            .getService(nsIPrefBranch);    switch (prefB.getPrefType(aPrefName)) {        case nsIPrefBranch.PREF_BOOL:            return prefB.getBoolPref(aPrefName);        case nsIPrefBranch.PREF_INT:            return prefB.getIntPref(aPrefName);        case nsIPrefBranch.PREF_STRING:            return prefB.getCharPref(aPrefName);        default: // includes nsIPrefBranch.PREF_INVALID            return aDefault;    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/85ecee76bf8413da05134a4ff27390c6e5ba8965/calendarUtils.js/buggy/calendar/resources/content/calendarUtils.js