From dea908428caa24e70d30a0b579cae66caa4aa640 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Wed, 4 Apr 2012 17:03:34 +0400 Subject: [PATCH] EA-33922 - AIOOBE: ContainerUtil.process --- .../impl/source/tree/injected/InjectedLanguageManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/psi/impl/source/tree/injected/InjectedLanguageManagerImpl.java b/platform/lang-impl/src/com/intellij/psi/impl/source/tree/injected/InjectedLanguageManagerImpl.java index 0fbc6ce60b8f..2f1c8dd29e84 100644 --- a/platform/lang-impl/src/com/intellij/psi/impl/source/tree/injected/InjectedLanguageManagerImpl.java +++ b/platform/lang-impl/src/com/intellij/psi/impl/source/tree/injected/InjectedLanguageManagerImpl.java @@ -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(injected), commitProcessor); } else { commitInjectionsRunnable.run();