uifw/AvKon/src/AknIndicatorContainer.cpp
branchRCL_3
changeset 25 941195f2d488
parent 23 3d340a0166ff
child 38 c52421ed5f07
--- a/uifw/AvKon/src/AknIndicatorContainer.cpp	Tue May 11 16:27:42 2010 +0300
+++ b/uifw/AvKon/src/AknIndicatorContainer.cpp	Tue May 25 12:58:19 2010 +0300
@@ -855,7 +855,14 @@
 
 EXPORT_C CCoeControl* CAknIndicatorContainer::ComponentControl(TInt aIndex) const
     {
-    return iIndicators->At(aIndex);
+    if ( aIndex >= 0 && aIndex < iIndicators->Count() )
+        {
+        return iIndicators->At( aIndex );
+        }
+    else
+        {
+        return NULL;
+        }
     }