From b4414c8ae0f34b7f9c1549aed10fb493826393bc Mon Sep 17 00:00:00 2001 From: "Anna.Kozlova" Date: Mon, 26 Mar 2018 19:23:24 +0200 Subject: [PATCH] fix UnsupportedOperationException on unmodifiable collection modification --- .../codeInsight/highlighting/ChooseOneOrAllRunnable.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/highlighting/ChooseOneOrAllRunnable.java b/platform/lang-impl/src/com/intellij/codeInsight/highlighting/ChooseOneOrAllRunnable.java index 8dc0177298d0..ea40887a817b 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/highlighting/ChooseOneOrAllRunnable.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/highlighting/ChooseOneOrAllRunnable.java @@ -26,6 +26,7 @@ import com.intellij.util.ArrayUtil; import org.jetbrains.annotations.NotNull; import javax.swing.*; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -59,7 +60,7 @@ public abstract class ChooseOneOrAllRunnable implements Ru selected(myClasses); return; } - List model = Arrays.asList(myClasses); + List model = new ArrayList<>(Arrays.asList(myClasses)); String selectAll = CodeInsightBundle.message("highlight.thrown.exceptions.chooser.all.entry"); model.add(0, selectAll);