textinput/peninputhwrboxjp/src/peninputhwrboxwindow.cpp
branchRCL_3
changeset 10 6defe5d1bd39
parent 0 eb1f2e154e89
--- a/textinput/peninputhwrboxjp/src/peninputhwrboxwindow.cpp	Mon Mar 15 12:42:02 2010 +0200
+++ b/textinput/peninputhwrboxjp/src/peninputhwrboxwindow.cpp	Wed Mar 31 22:08:20 2010 +0300
@@ -424,10 +424,10 @@
     AddButtonL( EPeninutWindowCtrlIdSwitchToVkbBtn,
                 EPeninputLayoutEventToVkb,
                 R_PENINPUT_LAYOUT_HWR_VKB );
-
-    for ( TInt i = 0; i < iCtrlPool->ControlCount(); i++ )
+    
+    if( iCtrlPool != NULL )
         {
-        if ( iCtrlPool )
+        for ( TInt i = 0; i < iCtrlPool->ControlCount(); i++ )
             {
             iCtrlPool->ControlByIndex( i )->AddEventObserver( UiLayout() );
             }