--- a/uiservicetab/vimpstui/src/cvimpstuitermsofusedlg.cpp Fri Feb 19 22:41:11 2010 +0200
+++ b/uiservicetab/vimpstui/src/cvimpstuitermsofusedlg.cpp Fri Mar 12 15:41:33 2010 +0200
@@ -428,14 +428,18 @@
charFormatMask.SetAttrib( EAttFontHeight );
//can't leave here
- TRAPD(err, iParaFormatLayer->SetL( ¶Format, paraFormatMask );
- iCharFormatLayer->SetL( charFormat, charFormatMask );
- iEditor->HandleTextChangedL(); );
- if( err != KErrNone )
- {
- CActiveScheduler::Current()->Error( err );
- }
-
+ if( iEditor )
+ {
+ TRAPD(err, iParaFormatLayer->SetL( ¶Format, paraFormatMask );
+ iCharFormatLayer->SetL( charFormat, charFormatMask );
+ iEditor->HandleTextChangedL(); );
+
+
+ if( err != KErrNone )
+ {
+ CActiveScheduler::Current()->Error( err );
+ }
+ }
TRAP_IGNORE(iEditor->MoveDisplayL(TCursorPosition::EFPageDown) );
TRAP_IGNORE(iEditor->MoveDisplayL(TCursorPosition::EFPageDown) );