textinput/peninputgenerichwr/src/peninputhwrarabicwindow.cpp
branchRCL_3
changeset 7 6defe5d1bd39
parent 0 eb1f2e154e89
child 9 e6a39382bb9c
--- a/textinput/peninputgenerichwr/src/peninputhwrarabicwindow.cpp	Mon Mar 15 12:42:02 2010 +0200
+++ b/textinput/peninputgenerichwr/src/peninputhwrarabicwindow.cpp	Wed Mar 31 22:08:20 2010 +0300
@@ -401,11 +401,15 @@
 //    rect.iTl.iY = rect.iTl.iY + 2*iUnitHeight;
 //    
 //    iHwBox->SetRect(rect);
-    for ( TInt i = 0; i < iCtrlPool->ControlCount(); i++ )
+    
+    if( iCtrlPool != NULL )
         {
-        if ( iCtrlPool && iCtrlPool->ControlByIndex( i ))
+        for ( TInt i = 0; i < iCtrlPool->ControlCount(); i++ )
             {
-            iCtrlPool->ControlByIndex( i )->AddEventObserver( UiLayout() );
+            if ( iCtrlPool->ControlByIndex( i ) )
+                {
+                iCtrlPool->ControlByIndex( i )->AddEventObserver( UiLayout() );
+                }
             }
         }
     }