locationtriggering/ltstrategyengine/src/lbttriggerview.cpp
branchRCL_3
changeset 44 2b4ea9893b66
parent 13 19bff11d6c18
child 45 6b6920c56e2f
--- a/locationtriggering/ltstrategyengine/src/lbttriggerview.cpp	Thu Aug 19 10:20:18 2010 +0300
+++ b/locationtriggering/ltstrategyengine/src/lbttriggerview.cpp	Tue Aug 31 15:37:04 2010 +0300
@@ -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;