Closed Bug 393542 Opened 18 years ago Closed 18 years ago

Startup error with fresh profile: composite.defaultCalendar has no properties

Categories

(Calendar :: General, defect)

defect
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ssitter, Assigned: Fallen)

Details

Attachments

(1 file)

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.7pre) Gecko/20070824 Calendar/0.7pre Steps to Reproduce: 1. start Sunbird with fresh profile 2. check Error Console Error: composite.defaultCalendar has no properties Source File: chrome://calendar/content/calendar-management.js Line: 226
I quickly found the problem. This should fix it and also make sure an item is selected.
Assignee: nobody → philipp
Status: NEW → ASSIGNED
Attachment #278047 - Flags: review?(michael.buettner)
Comment on attachment 278047 [details] [diff] [review] Fix regression - v1 >- if (aCalendar.id == composite.defaultCalendar.id) { >+ if (!composite.defaultCalendar || >+ aCalendar.id == composite.defaultCalendar.id) { > this.tree.view.selection.select(this.mCalendarList.length - 1); > } Why should we enforce a selected calendar here?
Comment on attachment 278047 [details] [diff] [review] Fix regression - v1 since mickey is on vacation, r=dbo
Attachment #278047 - Flags: review?(michael.buettner) → review+
Checked in on HEAD and MOZILLA_1_8_BRANCH -> FIXED
OS: Windows XP → All
Hardware: PC → All
Target Milestone: --- → 0.7
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Verified using Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.7pre) Gecko/20070825 Calendar/0.7pre.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: