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)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ssitter, Assigned: jminta)

References

()

Details

Attachments

(1 file)

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.
Attached patch check for null — — Splinter Review
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 on attachment 250763 [details] [diff] [review]
check for null

r=lilmatt
Attachment #250763 - Flags: first-review?(lilmatt) → first-review+
Comment on attachment 250763 [details] [diff] [review]
check for null

r2=mvl
Attachment #250763 - Flags: second-review?(mvl) → second-review+
patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
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.

Attachment

General

Creator:
Created:
Updated:
Size: