diff -r f5911524345e -r 78867dafe7eb uiservicetab/vimpstui/src/cvimpstuiblockviewcontrol.cpp --- a/uiservicetab/vimpstui/src/cvimpstuiblockviewcontrol.cpp Fri Feb 19 22:41:11 2010 +0200 +++ b/uiservicetab/vimpstui/src/cvimpstuiblockviewcontrol.cpp Fri Mar 12 15:41:33 2010 +0200 @@ -359,7 +359,10 @@ return EKeyWasConsumed; } TKeyResponse result = EKeyWasNotConsumed; - iCurrentItemIndex = iListBox->CurrentItemIndex(); + if (iListBox) + { + iCurrentItemIndex = iListBox->CurrentItemIndex(); + } // Offer key event first to the key event handler if ( (&iKeyEventHandler ) && iKeyEventHandler.Pbk2ProcessKeyEventL ( aKeyEvent, aType ) )