--- a/accessoryservices/accessoryserver/src/Server/AccSrvConnectionController.cpp Wed Apr 14 17:17:45 2010 +0300
+++ b/accessoryservices/accessoryserver/src/Server/AccSrvConnectionController.cpp Tue Apr 27 17:57:16 2010 +0300
@@ -766,7 +766,10 @@
{
TInt index( TAccPolGenericIDArrayAccessor::FindWithUniqueIDL(
genericIDArray, aDbId) );
- TAccPolGenericIDArrayAccessor::RemoveIndexFromGenericIDArray(genericIDArray, index);
+ if(KErrNotFound != index)
+ {
+ TAccPolGenericIDArrayAccessor::RemoveIndexFromGenericIDArray(genericIDArray, index);
+ }
}
accMode = iPolicy->ResolveAccessoryModeL( genericIDArray,