logsui/logscntfinder/src/logspredictive12keytranslator.cpp
changeset 15 76d2cf7a585e
parent 4 e52d42f9500c
child 17 90fe74753f71
--- a/logsui/logscntfinder/src/logspredictive12keytranslator.cpp	Fri Aug 06 14:57:47 2010 +0300
+++ b/logsui/logscntfinder/src/logspredictive12keytranslator.cpp	Mon Aug 23 18:14:51 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();
 }