rem: openEventDialog(item, item.calendar, "modify", onModifyItem); 
add: if (item) { openEventDialog(item, item.calendar, "modify", onModifyItem); } 
context: function modifyEventWithDialog(item){    var onModifyItem = function(item, calendar, originalItem) {        // compare cal.uri because there may be multiple instances of        // calICalendar or uri for the same spec, and those instances are        // not ==.        if (!originalItem.calendar ||             (originalItem.calendar.uri.equals(calendar.uri)))            doTransaction('modify', item, item.calendar, originalItem, null);        else {            doTransaction('move', item, calendar, originalItem, null);        }    }    openEventDialog(item, item.calendar, "modify", onModifyItem);}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/a539338f3696c67b441090f50c59fb2449769fb5/calendar-item-editing.js/buggy/calendar/base/content/calendar-item-editing.js