Fixed ConcurrentModificationException #683

This commit is contained in:
Rsl1122 2018-08-16 12:16:28 +03:00
parent 497b37aa3b
commit 12073e9732

View File

@ -160,7 +160,7 @@ public class SessionAccordion extends AbstractAccordion {
sessions.sort(new DateHolderRecentComparator());
int i = 0;
for (Session session : sessions) {
for (Session session : new ArrayList<>(sessions)) {
if (i >= maxSessions) {
break;
}