fep/aknfep/src/AknFepUiManagerChinese.cpp
branchRCL_3
changeset 7 6defe5d1bd39
parent 0 eb1f2e154e89
child 12 5e18d8c489d6
--- 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)