--- a/wlanutilities/wlansniffer/mainapplication/src/wsfmainviewcontroller.cpp Fri Mar 12 15:48:54 2010 +0200
+++ b/wlanutilities/wlansniffer/mainapplication/src/wsfmainviewcontroller.cpp Mon Mar 15 12:44:54 2010 +0200
@@ -155,8 +155,13 @@
TInt selectedItem = iContainer->SelectedItem();
CWsfWlanInfoArray* array = iModel->GetInfoArray();
if ( array )
- {
- TWsfWlanInfo* item = array->At( selectedItem );
+ {
+ TWsfWlanInfo* item = NULL;
+ if ( selectedItem < array->Count() )
+ {
+ item = array->At( selectedItem );
+ }
+
if ( item )
{
iSelectedItem = *item;