]> source.dussan.org Git - archiva.git/commitdiff
copy Collection to avoid ConcurrentModificationException
authorOlivier Lamy <olamy@apache.org>
Wed, 7 Sep 2011 13:15:20 +0000 (13:15 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 7 Sep 2011 13:15:20 +0000 (13:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1166163 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-repository-admin/src/main/java/org/apache/archiva/admin/repository/remote/DefaultRemoteRepositoryAdmin.java

index 99d80cf5041378aa7c7618a19a506afcc7df3741..732a479a01db7579983ebd72895b59698abf30eb 100644 (file)
@@ -115,7 +115,8 @@ public class DefaultRemoteRepositoryAdmin
 
         // TODO use ProxyConnectorAdmin interface ?
         // [MRM-520] Proxy Connectors are not deleted with the deletion of a Repository.
-        List<ProxyConnectorConfiguration> proxyConnectors = configuration.getProxyConnectors();
+        List<ProxyConnectorConfiguration> proxyConnectors =
+            new ArrayList<ProxyConnectorConfiguration>( configuration.getProxyConnectors() );
         for ( ProxyConnectorConfiguration proxyConnector : proxyConnectors )
         {
             if ( StringUtils.equals( proxyConnector.getTargetRepoId(), repositoryId ) )