EA-82356 - CME: SequenceIterator.next

This commit is contained in:
Dmitry Avdeev
2017-04-25 18:31:24 +03:00
parent 342a908aae
commit defaa856bd
@@ -358,7 +358,7 @@ public abstract class RecentProjectsManagerBase extends RecentProjectsManager im
ApplicationManager.getApplication().executeOnPooledThread(() -> {
Set<String> names = ContainerUtil.newHashSet();
final HashSet<String> duplicates = ContainerUtil.newHashSet();
for (String path : ContainerUtil.concat(openedPaths, recentPaths)) {
for (String path : ContainerUtil.newArrayList(ContainerUtil.concat(openedPaths, recentPaths))) {
if (!names.add(getProjectName(path))) {
duplicates.add(path);
}