--- a/contextengine/plugins/calendarplugin/src/CalendarContextPlugin.cpp Wed Mar 31 22:19:07 2010 +0300
+++ b/contextengine/plugins/calendarplugin/src/CalendarContextPlugin.cpp Wed Apr 14 16:24:03 2010 +0300
@@ -240,6 +240,14 @@
WRITELOG1( "CCalendarContextPlugin::AddMetaDataL -- instanceCount: %d", instanceCount );
+ if( instanceCount == 0 )
+ {
+ CleanupStack::PopAndDestroy( &instances );
+
+ WRITELOG( "CCalendarContextPlugin::AddMetaDataL - no calendar items found -- RETURN" );
+ return;
+ }
+
// required object properties
WRITELOG( "CCalendarContextPlugin::AddMetaDataL" );
User::LeaveIfNull( iMdeSession );