browserui/browser/FavouritesSrc/BrowserFavouritesView.cpp
branchRCL_3
changeset 63 4baee4f15982
parent 62 5a044f6358c2
equal deleted inserted replaced
62:5a044f6358c2 63:4baee4f15982
   577         CBrowserFavouritesListboxState *temp = NULL;
   577         CBrowserFavouritesListboxState *temp = NULL;
   578         TInt err( KErrNone );
   578         TInt err( KErrNone );
   579         TInt tempUid( KFavouritesNullUid );
   579         TInt tempUid( KFavouritesNullUid );
   580 
   580 
   581         temp = new CBrowserFavouritesListboxState;
   581         temp = new CBrowserFavouritesListboxState;
   582         if ( temp!=NULL )
   582         if ( iContainer && temp!=NULL  )
   583             {
   583             {
   584             delete iSavedListboxState;
   584             delete iSavedListboxState;
   585             iSavedListboxState = temp;
   585             iSavedListboxState = temp;
   586             // folder might be empty, no CurrentItem at all
   586             // folder might be empty, no CurrentItem at all
   587             if ( iContainer->Listbox()->CurrentItem() )
   587             if ( iContainer->Listbox()->CurrentItem() )