wlanutilities/wlansniffer/mainapplication/src/wsfmainviewcontroller.cpp
branchRCL_3
changeset 11 8b0eae1b1d71
parent 0 56b72877c1cb
child 13 858c6c491d0e
--- 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;