fep/aknfep/src/AknFepUiInputStateCandidateQwertyBaseChinesePhrase.cpp
branchRCL_3
changeset 7 6defe5d1bd39
parent 0 eb1f2e154e89
--- a/fep/aknfep/src/AknFepUiInputStateCandidateQwertyBaseChinesePhrase.cpp	Mon Mar 15 12:42:02 2010 +0200
+++ b/fep/aknfep/src/AknFepUiInputStateCandidateQwertyBaseChinesePhrase.cpp	Wed Mar 31 22:08:20 2010 +0300
@@ -68,7 +68,11 @@
             RArray < TPtiNumericKeyBinding > keybinding;
             TBool validnumkey = EFalse;
             CPtiEngine* ptiengine = iOwner->PtiEngine();
-            lang = ptiengine->CurrentLanguage();
+            
+            if( ptiengine != NULL )
+                {
+                lang = ptiengine->CurrentLanguage();
+                }
             if( ptiengine && lang )
                 {
                 TRAP_IGNORE(ptiengine->GetNumericModeKeysForQwertyL(lang->LanguageCode(), 
@@ -327,7 +331,11 @@
             || EPtiKeyboardCustomQwerty == keyboardtype)
         {
         RArray <TPtiNumericKeyBinding> keybinding;
-        lang = ptiengine->CurrentLanguage();
+        
+        if( ptiengine != NULL )
+            {
+            lang = ptiengine->CurrentLanguage();
+            }
         if ( ptiengine && lang )
             {
             TRAP_IGNORE(ptiengine->GetNumericModeKeysForQwertyL(lang->LanguageCode(), keybinding, keyboardtype));