diff -r b8d67d6176f5 -r 3c221667e687 phoneuis/easydialing/src/easydialingplugin.cpp --- a/phoneuis/easydialing/src/easydialingplugin.cpp Wed Jun 09 09:41:11 2010 +0300 +++ b/phoneuis/easydialing/src/easydialingplugin.cpp Mon Jun 21 15:39:45 2010 +0300 @@ -1655,8 +1655,14 @@ { // Need to save current contact link and name. Listbox current item // index might not be correct when callback is handled. - iContactToBeLaunched = iContactListBox->CurrentContactLinkLC(); - CleanupStack::Pop( iContactToBeLaunched ); + TRAPD( err, iContactToBeLaunched = iContactListBox->CurrentContactLinkL() ); + if ( err || !iContactToBeLaunched ) + { + // Can't find contact for the action - probably because listbox + // has lost the selection somehow. This shouldn't happen, but if it does + // return without trying to launch any action. + return; + } TPtrC contactString( iListBoxModel->MdcaPoint( iContactListBox->CurrentItemIndex() ) ); TPtrC fullNameSeparators;