diff -r 6ceef9a83b1a -r 6defe5d1bd39 fep/aknfep/src/AknFepUiManagerChinese.cpp --- a/fep/aknfep/src/AknFepUiManagerChinese.cpp Mon Mar 15 12:42:02 2010 +0200 +++ b/fep/aknfep/src/AknFepUiManagerChinese.cpp Wed Mar 31 22:08:20 2010 +0300 @@ -484,8 +484,13 @@ TBool CAknFepUIManagerChinese::IsValidChineseInputKeyQwerty(TInt aKey) const { TBool response = EFalse; -#ifdef RD_INTELLIGENT_TEXT_INPUT - TPtiKeyboardType keyboardType = iPtiEngine->KeyboardType(); +#ifdef RD_INTELLIGENT_TEXT_INPUT + + TPtiKeyboardType keyboardType = EPtiKeyboardNone; + if( iPtiEngine != NULL ) + { + keyboardType = iPtiEngine->KeyboardType(); + } #endif if(iMode == EPinyin) @@ -654,7 +659,8 @@ } #endif #ifdef RD_INTELLIGENT_TEXT_INPUT - if(EPtiKeyboardQwerty4x12 == iPtiEngine->KeyboardType()) + + if( iPtiEngine != NULL && EPtiKeyboardQwerty4x12 == iPtiEngine->KeyboardType()) { #endif if(iMode == EZhuyin && IsFlagSet(ESupportZhuyinPhrase) && aKey == EPtiKeyQwertyApostrophe)