connectionmonitoring/connectionmonitorui/src/ConnectionMonitorUiView.cpp
changeset 4 77415202bfc8
parent 0 5a93021fdf25
child 8 2e6c4614c58e
child 41 bbb64eb3bdee
--- a/connectionmonitoring/connectionmonitorui/src/ConnectionMonitorUiView.cpp	Tue Jan 26 12:12:48 2010 +0200
+++ b/connectionmonitoring/connectionmonitorui/src/ConnectionMonitorUiView.cpp	Tue Feb 02 00:24:11 2010 +0200
@@ -173,6 +173,13 @@
                                                  CEikMenuPane* aMenuPane )
     {
     MEikMenuObserver::DynInitMenuPaneL( aResourceId, aMenuPane );
+    // This is a security measure to prevent menu pane updates when
+    // the main view is not active. This should not happen but
+    // just to be safe it is checked.
+    if ( !iContainer )
+        {
+        return;
+        }
     switch ( aResourceId )
         {
         case R_CONNECTIONMONITORUI_VIEW_MENU: