rem: var icalRootComp = getIcsService().parseICS( data ); checkWcapIcalErrno( icalRootComp ); 
add: var icalRootComp; try { icalRootComp = getIcsService().parseICS(data); } catch (exc) { throw new Components.Exception("error parsing ical data!", Components.interfaces.calIErrors.ICS_PARSE); } checkWcapIcalErrno(icalRootComp, expectedErrno); 
context: function stringToIcal( data ){    if (!data || data == "") { // assuming time-out        throw new Components.Exception(            "Login failed. Invalid session ID.",            Components.interfaces.calIWcapErrors.WCAP_LOGIN_FAILED );    }    var icalRootComp = getIcsService().parseICS( data );    checkWcapIcalErrno( icalRootComp );    return icalRootComp;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/a8adf4992620da379274cea3395ed3099b6769d6/calWcapRequest.js/buggy/calendar/providers/wcap/calWcapRequest.js