mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 23:30:46 +00:00
Fixed bug 152274: Calling fetchEvent with null parameter crashes Mozilla
This commit is contained in:
parent
3327303fbe
commit
cdda83d729
@ -971,6 +971,15 @@ NS_IMETHODIMP oeICalImpl::FetchEvent( const char *id, oeIICalEvent **ev)
|
||||
#ifdef ICAL_DEBUG_ALL
|
||||
printf( "oeICalImpl::FetchEvent()\n" );
|
||||
#endif
|
||||
|
||||
if( id == nsnull ) {
|
||||
#ifdef ICAL_DEBUG
|
||||
printf( "oeICalImpl::FetchEvent() - Invalid Id.\n" );
|
||||
#endif
|
||||
*ev = nsnull;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
oeIICalEvent* event = m_eventlist.GetEventById( id );
|
||||
if( event != nsnull ) {
|
||||
event->AddRef();
|
||||
|
Loading…
x
Reference in New Issue
Block a user