logsui/logscntfinder/src/logspredictive12keytranslator.cpp
changeset 16 c5af8598d22c
parent 4 e52d42f9500c
child 17 90fe74753f71
--- a/logsui/logscntfinder/src/logspredictive12keytranslator.cpp	Wed Aug 18 09:49:12 2010 +0300
+++ b/logsui/logscntfinder/src/logspredictive12keytranslator.cpp	Thu Sep 02 20:27:05 2010 +0300
@@ -104,8 +104,10 @@
 const QChar LogsPredictive12KeyTranslator::translateChar( 
         const QChar character ) const
 {
-    const HbMappedKey* mappedKey = 
-            mKeyMap->keyForCharacter( HbKeyboardVirtual12Key, character );
+    const HbMappedKey* mappedKey = 0;
+    if ( mKeyMap ) {
+        mappedKey = mKeyMap->keyForCharacter( HbKeyboardVirtual12Key, character );
+    }
     return mappedKey ? mappedKey->keycode : QChar();
 }