phonebookui/Phonebook2/xSPExtensionManager/src/CxSPSortViewControl.cpp
branchRCL_3
changeset 12 4ae315f230bc
parent 7 b3431bff8c19
--- a/phonebookui/Phonebook2/xSPExtensionManager/src/CxSPSortViewControl.cpp	Tue May 11 16:00:21 2010 +0300
+++ b/phonebookui/Phonebook2/xSPExtensionManager/src/CxSPSortViewControl.cpp	Tue May 25 12:26:45 2010 +0300
@@ -129,8 +129,14 @@
          case EKeyUpArrow:
          case EKeyDownArrow:
              {
-             const CListBoxView::CSelectionIndexArray* inds = iListBox->SelectionIndexes();
-             TInt count = inds->Count();
+             const CListBoxView::CSelectionIndexArray* inds = NULL;
+             TInt count = 0;
+             
+             if ( iListBox )
+            	 {
+            	 inds = iListBox->SelectionIndexes();
+            	 count = inds->Count();
+            	 }
              
              if ( count <= 0 )
                  {
@@ -147,8 +153,14 @@
          case EKeyEnter:
          case EKeyOK: 
              {
-             const CListBoxView::CSelectionIndexArray* inds = iListBox->SelectionIndexes();
-             TInt count = inds->Count();
+             const CListBoxView::CSelectionIndexArray* inds = NULL;
+             TInt count = 0;
+             
+             if ( iListBox )
+            	 {
+            	 inds = iListBox->SelectionIndexes();
+            	 count = inds->Count();
+            	 }
              
              if ( count <= 0 )
                  {