accessoryservices/accessoryserver/src/Server/AccSrvConnectionController.cpp
changeset 22 effbe8362efc
parent 16 ef634fd8dac3
child 29 e5a0aab53f3f
--- 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,