contextengine/plugins/calendarplugin/src/CalendarContextPlugin.cpp
branchRCL_3
changeset 19 82c0024438c8
parent 0 c53acadfccc6
child 40 910a23996aa0
child 54 a3cc46f37772
--- 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 );