EA-33922 - AIOOBE: ContainerUtil.process

This commit is contained in:
Alexey Kudravtsev
2012-04-05 13:18:43 +04:00
parent 2af3a5a1fa
commit dea908428c
@@ -188,7 +188,7 @@ public class InjectedLanguageManagerImpl extends InjectedLanguageManager impleme
if (Thread.holdsLock(PsiLock.LOCK)) {
// hack for the case when docCommit was called from within PSI modification, e.g. in formatter.
// we can't spawn threads to do injections there, otherwise a deadlock is imminent
ContainerUtil.process(injected, commitProcessor);
ContainerUtil.process(new ArrayList<DocumentWindow>(injected), commitProcessor);
}
else {
commitInjectionsRunnable.run();