locationtriggering/ltstrategyengine/src/lbttriggerview.cpp
changeset 39 3efc7a0e8755
parent 18 3825cf2dc8c2
child 45 6b6920c56e2f
--- a/locationtriggering/ltstrategyengine/src/lbttriggerview.cpp	Fri Jul 23 19:40:48 2010 +0530
+++ b/locationtriggering/ltstrategyengine/src/lbttriggerview.cpp	Fri Aug 06 19:34:22 2010 +0530
@@ -102,7 +102,12 @@
                 return;
                 }
 
-            iRefRequestList.Append( req );
+            err = iRefRequestList.Append( req );
+            if( err != KErrNone )
+                {
+                LOG1("Failed to append req to the array:%d",err);
+                return;
+                }
             }
             
         LOG1( "View State is %d", iState );
@@ -130,7 +135,12 @@
     
     for( TInt index = 0; index < iModifiedTrgList.Count(); index++ )
         {
-        aList.Append( iModifiedTrgList[index] );
+        TInt error = aList.Append( iModifiedTrgList[index] );
+        if( error != KErrNone )
+            {
+            LOG1("Failed to append trigger id:%d",error);
+            return;
+            }
         }
     
     // This is done here because strategy engine invokes this method and evaluates all modified triggers
@@ -235,7 +245,11 @@
     reqParam.posInfo = aPosInfo;
     reqParam.trigger = aTrigger;
     reqParam.dataMask = aDataMask;
-    iUpdateRequestList.Append( reqParam );
+    TInt error = iUpdateRequestList.Append( reqParam );
+    if( error != KErrNone )
+        {
+        LOG1("Failed to appenf reqParam:%d",error);
+        }
     if( EIdle == iState )
         {
         iState = ERefreshContainer;