--- a/accessoryservices/accessoryserver/src/Server/AccSrvConnectionController.cpp Mon May 03 13:42:22 2010 +0300
+++ b/accessoryservices/accessoryserver/src/Server/AccSrvConnectionController.cpp Fri May 14 17:08:00 2010 +0300
@@ -855,7 +855,10 @@
{
TInt index( TAccPolGenericIDArrayAccessor::FindWithUniqueIDL(
genericIDArray, aDbId) );
- TAccPolGenericIDArrayAccessor::RemoveIndexFromGenericIDArray(genericIDArray, index);
+ if(KErrNotFound != index)
+ {
+ TAccPolGenericIDArrayAccessor::RemoveIndexFromGenericIDArray(genericIDArray, index);
+ }
}
accMode = iPolicy->ResolveAccessoryModeL( genericIDArray,