--- a/textinput/peninputarc/gsplugin/gspeninputplugin/src/gspeninputcontainer.cpp Tue Feb 02 01:02:04 2010 +0200
+++ b/textinput/peninputarc/gsplugin/gspeninputplugin/src/gspeninputcontainer.cpp Fri Apr 16 15:17:40 2010 +0300
@@ -510,7 +510,11 @@
}
// Finally, set the dynamic text
- iListboxItemArray->SetDynamicTextL(EGSDefaultChineseOnscreenKeyboard, ptrBuffer);
+
+ if( iListboxItemArray != NULL )
+ {
+ iListboxItemArray->SetDynamicTextL(EGSDefaultChineseOnscreenKeyboard, ptrBuffer);
+ }
CleanupStack::PopAndDestroy(dynamicText);
// And add to listbox
@@ -750,8 +754,11 @@
HBufC* dynamicText = HBufC::NewLC(KGSBufSize);
TPtr ptrBuffer(dynamicText->Des());
const TInt chineseFindMethod = iModel->ChineseFindMethod();
-
- ptrBuffer = (*iChineseFindMethodItems)[chineseFindMethod];
+
+ if( iChineseFindMethodItems != NULL )
+ {
+ ptrBuffer = (*iChineseFindMethodItems)[chineseFindMethod];
+ }
if (!ptrBuffer.Length() && iChineseFindMethodItems->Count() > 0)
{