diff -r 1e73d2d04cbc -r 8812206c49a0 filemanager/App/src/CFileManagerFileListContainer.cpp --- a/filemanager/App/src/CFileManagerFileListContainer.cpp Fri Feb 19 22:41:53 2010 +0200 +++ b/filemanager/App/src/CFileManagerFileListContainer.cpp Fri Mar 12 15:41:37 2010 +0200 @@ -210,14 +210,18 @@ TUid enabledViewUid = enabledViewId.iViewUid; CAknView* enabledView = iAppUi->View( enabledViewUid ); - CEikMenuBar* menuBar = enabledView->MenuBar(); + CEikMenuBar* menuBar = NULL; + if ( iAppUi->IsFileManagerView( enabledViewUid ) ) + { + menuBar = enabledView->MenuBar(); + } switch( aKeyEvent.iCode ) { case EKeyEnter: // FALLTHROUH case EKeyOK: { - if ( menuBar->ItemSpecificCommandsEnabled() ) + if ( ( menuBar != NULL ) && menuBar->ItemSpecificCommandsEnabled() ) { iAppUi->ProcessCommandL( EFileManagerSelectionKey ); response = EKeyWasConsumed; @@ -227,7 +231,7 @@ case EKeyDelete: // FALLTHROUGH case EKeyBackspace: { - if ( menuBar->ItemSpecificCommandsEnabled() ) + if ( ( menuBar != NULL ) && menuBar->ItemSpecificCommandsEnabled() ) { iAppUi->ProcessCommandL( EFileManagerDelete ); response = EKeyWasConsumed;