diff -r 02ba3f1733c6 -r 2b4ea9893b66 locationtriggering/ltserver/ltserverlogic/src/lbtappchangehandler.cpp --- a/locationtriggering/ltserver/ltserverlogic/src/lbtappchangehandler.cpp Thu Aug 19 10:20:18 2010 +0300 +++ b/locationtriggering/ltserver/ltserverlogic/src/lbtappchangehandler.cpp Tue Aug 31 15:37:04 2010 +0300 @@ -148,7 +148,12 @@ TLbtAppInfo appInfo = iCurrentInstalledApps[i]; // The removed application resided in the MMC card - iAppList.Append( appInfo ); + TInt error = iAppList.Append( appInfo ); + if( error != KErrNone ) + { + LOG1("Failed to append appInfo:%d",error); + return; + } // Check if the application resides in MMC if( appInfo.iFullName.FindC(iMMCDriveChar) >= 0 ) @@ -201,7 +206,12 @@ if( appInfo.iFullName.FindC( iMMCDriveChar ) >= 0 ) { // Append to the array only if the application resides on the MMC - iAppList.Append( appInfo ); + TInt error = iAppList.Append( appInfo ); + if( error != KErrNone ) + { + LOG1("Failed to append appInfo to the array:%d",error); + return; + } } } } @@ -314,7 +324,12 @@ for( TInt i=0;iTriggerEntry()->Id()); + triggerIds.AppendL(iTriggerEntries[i]->TriggerEntry()->Id()); } TLbtTriggerDynamicInfo::TLbtTriggerValidity validity;