Kaydet (Commit) 48ef3c7a authored tarafından Andras Timar's avatar Andras Timar

men can be null

Change-Id: Ie8edf34c6e23b3cc305e8e2ef9839dffa5ea820c
üst e982c60b
......@@ -1113,9 +1113,9 @@ void MenuFloatingWindow::KeyInput( const KeyEvent& rKEvent )
pMenu->GetItemList()->SearchItem(nCharCode, rKEvent.GetKeyCode(), nPos, nDuplicates, nHighlightedItem) : NULL;
bool accel = ImplGetSVData()->maNWFData.mbEnableAccel;
Menu *men = pMenu;
while (!men->IsMenuBar())
while (men && !men->IsMenuBar())
men = men->pStartedFrom;
if ( pData && (static_cast<MenuBarWindow*>(men->pWindow.get()))->GetMBWMenuKey () && accel )
if ( men && pData && (static_cast<MenuBarWindow*>(men->pWindow.get()))->GetMBWMenuKey () && accel )
{
if ( pData->pSubMenu || nDuplicates > 1 )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment