uiservicetab/vimpstui/src/cvimpstuisearchview.cpp
branchRCL_3
changeset 6 78867dafe7eb
parent 0 5e5d6b214f4f
child 9 9fdee5e1da30
--- a/uiservicetab/vimpstui/src/cvimpstuisearchview.cpp	Fri Feb 19 22:41:11 2010 +0200
+++ b/uiservicetab/vimpstui/src/cvimpstuisearchview.cpp	Fri Mar 12 15:41:33 2010 +0200
@@ -570,10 +570,11 @@
 	
     CVIMPSTUiSearchQueryDialog* querydialog = CVIMPSTUiSearchQueryDialog::NewL( fieldArray );
    
-    querydialog->ExecuteLD();
+ 
    
     if (querydialog)
         {
+        querydialog->ExecuteLD();
         iEndKeyPressed = querydialog->IsEndKeyPressed();
         }
     
@@ -598,13 +599,15 @@
 	
 		iExtensionService.SetSearchStringL( searchStrPtr );
 		UpdateNaviPaneTextL();
-		if ( iContainer->ListBox()->Model()->NumberOfItems() > 0 )
-	        {
-	        iContainer->ClearListBoxContents();  
-	        }
-	    // set the empty string blank    
-		iContainer->SetSearchingTextToListboxL();   
-		
+		if ( iContainer)
+			{
+			if ( iContainer->ListBox()->Model()->NumberOfItems() > 0 )
+		        {
+		        iContainer->ClearListBoxContents();  
+		        }
+		    // set the empty string blank    
+			iContainer->SetSearchingTextToListboxL();   
+		  }
 		HBufC* searchWaitNoteText = StringLoader::LoadLC( R_QTN_SERVTAB_SEARCHING , searchStrPtr, CCoeEnv::Static() );
 		iWaitNote = CVIMPSTUtilsWaitNote::ShowWaitNoteL( *searchWaitNoteText, EFalse , ETrue  );  
     	CleanupStack::PopAndDestroy(searchWaitNoteText);