diff -r 6ceef9a83b1a -r 6defe5d1bd39 textinput/peninputvkbjp/src/peninputvkbwindow.cpp --- a/textinput/peninputvkbjp/src/peninputvkbwindow.cpp Mon Mar 15 12:42:02 2010 +0200 +++ b/textinput/peninputvkbjp/src/peninputvkbwindow.cpp Wed Mar 31 22:08:20 2010 +0300 @@ -380,9 +380,10 @@ AddButtonL( EPeninutWindowCtrlIdSwitchToHwrBtn, EPeninputLayoutEventToHwr, R_PENINPUT_LAYOUT_VKB_HWR ); - 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() ); } @@ -711,7 +712,11 @@ CFepUiBaseCtrl* ctrl = iCtrlPool->Control( EPeninutWindowCtrlIdRangeBar ); TRect rect = TRect( TPoint(0,0), TSize( unitWidth, unitHeight ) ); - static_cast (ctrl)->SizeChanged(rect); + + if( ctrl != NULL ) + { + static_cast (ctrl)->SizeChanged(rect); + } } }