--- 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() );
+ }
}
}
}