textinput/peninputgenericitut/src/peninputgenericitutlayout.cpp
branchRCL_3
changeset 19 ac7e4d1d9209
parent 15 6c2c2d3ab788
--- 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;