--- a/textinput/peninputgenericitut/src/peninputgenericitutlayout.cpp Thu Jul 15 19:01:13 2010 +0300
+++ b/textinput/peninputgenericitut/src/peninputgenericitutlayout.cpp Thu Aug 19 10:15:25 2010 +0300
@@ -325,6 +325,14 @@
TInt CGenericItutUiLayout::SizeChanged(const TAny* /*pData*/)
{
+
+ // For avoiding that NULL pointer is called
+ // add UiMgr() and CurrentState() condition
+ if( !( UiMgr() && UiMgr()->CurrentState()))
+ {
+ return KErrBadHandle;
+ }
+
TBool overLap = UiMgr()->CurrentState()->StateType()
== CGenericItutUiMgrBase::EStateMatchSelection ? ETrue: EFalse;