rem: document.getElementById("calendarTree").view.selection.select(0); 
add: var index = getIndexForCalendar(getCompositeCalendar().defaultCalendar); var indexToSelect = (index != - 1) ? index : 0; document.getElementById("calendarTree").view.selection.select(indexToSelect); 
context: function ltnSetTreeView(){    document.getElementById("calendarTree").view = ltnCalendarTreeView;    // Ensure that a calendar is selected in calendar tree after startup.    if (document.getElementById("calendarTree").currentIndex == -1) {        document.getElementById("calendarTree").view.selection.select(0);    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/04a723ed6e15f5174c7e8978dcb49263d824a8c8/calendar-management.js/buggy/calendar/lightning/content/calendar-management.js