rem: document.getElementById("calendar-color").color = calManager.getCalendarPref(gCalendar, 'color'); 
add: var calColor = calManager.getCalendarPref(gCalendar, 'color'); if (calColor) { document.getElementById("calendar-color").color = calColor; } 
context: function loadCalendarPropertiesDialog(){   var args = window.arguments[0];      gCalendar = args.calendar;   var calManager = getCalendarManager();   document.getElementById("calendar-name").value = gCalendar.name;   document.getElementById("calendar-color").color =        calManager.getCalendarPref(gCalendar, 'color');   document.getElementById("calendar-uri").value = gCalendar.uri.spec;   document.getElementById("read-only").checked = gCalendar.readOnly;      // start focus on title   document.getElementById("calendar-name").focus();   sizeToContent();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/5e42ff25be06e43475a693b9e3db39e71e662223/calendarProperties.js/buggy/calendar/resources/content/calendarProperties.js