idlefw/plugins/mcsplugin/publisher/src/mcsplugin.cpp
branchRCL_3
changeset 19 edd621764147
parent 14 15e4dd19031c
child 23 ace62b58f4b2
--- a/idlefw/plugins/mcsplugin/publisher/src/mcsplugin.cpp	Tue Apr 27 16:57:49 2010 +0300
+++ b/idlefw/plugins/mcsplugin/publisher/src/mcsplugin.cpp	Tue May 11 16:30:05 2010 +0300
@@ -89,7 +89,7 @@
 //
 CMCSPlugin::~CMCSPlugin()
     {
-     Release( iContent );
+    Release( iContent );
 
     delete iEngine;
     iObservers.Close();
@@ -157,7 +157,12 @@
         return;
         }
 
-    CMenuItem* item = iEngine->FetchMenuItemL( aData );    
+    CMenuItem* item = iEngine->FetchMenuItemL( aData );
+    if ( !item )
+        {
+        User::Leave( KErrNotFound );
+        }
+
     CleanupStack::PushL( item );
     
     // One widget item has iDataCount number of elements