diff -r d48ab3b357f1 -r 978afdc0236f uifw/AvKon/src/AknRadioButtonSettingPage.cpp --- a/uifw/AvKon/src/AknRadioButtonSettingPage.cpp Wed Sep 01 12:16:19 2010 +0100 +++ b/uifw/AvKon/src/AknRadioButtonSettingPage.cpp Tue Sep 14 21:48:24 2010 +0300 @@ -181,7 +181,7 @@ { iExtension = new (ELeave) CAknRadioButtonSettingPageExtension( *this ); } - + iExtension->iIsValidSelection = ( iCurrentSelectionIndex != -1 ); // Range should be within the valid indices, or -1: // So valid range is >= -1 and also < Count. __ASSERT_ALWAYS( iCurrentSelectionIndex >= -1, Panic( EAknPanicRadioButtonSettingPageIndexOutOfRange) ); @@ -315,7 +315,8 @@ { iCurrentSelectionIndex = ListBoxControl()->CurrentItemIndex(); } - else + else if( iCurrentSelectionIndex >= 0 && + iCurrentSelectionIndex < ListBoxControl()->Model()->NumberOfItems() ) { ListBoxControl()->SetCurrentItemIndex ( iCurrentSelectionIndex ); }