uiservicetab/vimpstui/src/cvimpstuitermsofusedlg.cpp
branchRCL_3
changeset 6 78867dafe7eb
parent 0 5e5d6b214f4f
child 9 9fdee5e1da30
--- 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( &paraFormat, paraFormatMask );
-                   iCharFormatLayer->SetL( charFormat, charFormatMask );
-                   iEditor->HandleTextChangedL(); );
-        if( err != KErrNone )
-            {
-            CActiveScheduler::Current()->Error( err );
-            }       
-
+        if( iEditor )
+        	 {
+	         TRAPD(err, iParaFormatLayer->SetL( &paraFormat, 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) );