mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-21 21:57:56 +01:00
Fix java.util.ConcurrentModificationException on User creation.
This commit is contained in:
parent
2146e2e457
commit
103534475d
@ -34,6 +34,7 @@ import org.springframework.security.crypto.password.PasswordEncoder;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
import java.util.concurrent.CopyOnWriteArraySet;
|
||||||
|
|
||||||
public class UserManagerImpl
|
public class UserManagerImpl
|
||||||
extends HibernateDaoSupport
|
extends HibernateDaoSupport
|
||||||
@ -118,7 +119,7 @@ public class UserManagerImpl
|
|||||||
this.createUser(user);
|
this.createUser(user);
|
||||||
|
|
||||||
// Update mindmap ...
|
// Update mindmap ...
|
||||||
final Set<Collaboration> collaborations = collaborator.getCollaborations();
|
final Set<Collaboration> collaborations = new CopyOnWriteArraySet<>(collaborator.getCollaborations());
|
||||||
for (Collaboration collabs : collaborations) {
|
for (Collaboration collabs : collaborations) {
|
||||||
collabs.setCollaborator(user);
|
collabs.setCollaborator(user);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user