accessoryservices/accessoryserver/src/Server/AccSrvConnectionController.cpp
branchRCL_3
changeset 9 21e939dd208a
parent 8 8d1d8440b626
child 10 66ecddbca914
--- 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,