diff -r f7816ffc66ed -r 77415202bfc8 connectionmonitoring/connectionmonitorui/src/ConnectionMonitorUiView.cpp --- 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: