Closed
Bug 364605
Opened 18 years ago
Closed 18 years ago
Error 'ArrayOfEvents[0] has no properties' in unifinder.js
Categories
(Calendar :: Sunbird Only, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: ssitter, Assigned: jminta)
References
()
Details
Attachments
(1 file)
937 bytes,
patch
|
mattwillis
:
first-review+
mvl
:
second-review+
|
Details | Diff | Splinter Review |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a2pre) Gecko/20061221 Calendar/0.4a1 Error 'ArrayOfEvents[0] has no properties' in unifinder.js Steps to Reproduce: 1. Start Sunbird with clean profile 2. Select filter 'Events in the Next 7 Days' in unifinder 3. Switch to month view 4. Create non-all-day event that lasts from yesterday to tomorrow 5. Drag and drop event to previous week 6. Edit event and change the start time 7. Drag and drop event to initial date Actual Results: JavaScript console shows the following error Error: ArrayOfEvents[0] has no properties Source File: chrome://calendar/content/unifinder.js Line: 377 Apart from that everything seems to work fine.
Assignee | ||
Comment 1•18 years ago
|
||
js> new Array().concat(null).length 1 http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/calendar/resources/content/unifinder.js&rev=1.142&mark=208-209#200
Assignee | ||
Comment 2•18 years ago
|
||
I can't tell you how much I want to trash all this code and re-write it. This patch checks to make sure we got a real event back, before adding it to the array.
Assignee: nobody → jminta
Status: NEW → ASSIGNED
Attachment #250763 -
Flags: second-review?(mvl)
Attachment #250763 -
Flags: first-review?(lilmatt)
Comment 3•18 years ago
|
||
Comment on attachment 250763 [details] [diff] [review] check for null r=lilmatt
Attachment #250763 -
Flags: first-review?(lilmatt) → first-review+
Comment 4•18 years ago
|
||
Comment on attachment 250763 [details] [diff] [review] check for null r2=mvl
Attachment #250763 -
Flags: second-review?(mvl) → second-review+
Assignee | ||
Comment 5•18 years ago
|
||
patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment 6•18 years ago
|
||
verified with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2pre) Gecko/20070112 Calendar/0.4a1
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•