csxhelp/src/CSXHHtmlTopicContainer.cpp
branchRCL_3
changeset 14 b69cc3efe785
parent 11 326673dff2bf
child 16 0d1adf67ec1b
--- a/csxhelp/src/CSXHHtmlTopicContainer.cpp	Wed Jun 09 09:28:21 2010 +0300
+++ b/csxhelp/src/CSXHHtmlTopicContainer.cpp	Mon Jun 21 15:26:26 2010 +0300
@@ -285,9 +285,15 @@
             {
             //Update the title bar
             CEikStatusPane* sp = CCSXHAppUi::GetInstance()->StatusPane();
-            CAknTitlePane* titlePane = STATIC_CAST(CAknTitlePane*, 
-            sp->ControlL(TUid::Uid(EEikStatusPaneUidTitle)));
-            titlePane->SetTextL(KNullDesC);
+            CAknTitlePane* titlePane = NULL;
+            TRAPD( err, titlePane = STATIC_CAST(CAknTitlePane*, 
+                    sp->ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ) ) );
+            if ( KErrNone == err )
+                {
+                //If can't set Null text to title, no other good way to do further, 
+                //so just ignore this leave
+                TRAP_IGNORE( titlePane->SetTextL( KNullDesC ) );
+                }
             
             iBrCtrl->SetRect(TRect(0,0,0,0));
             }