mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix java.lang.ArrayIndexOutOfBoundsException: 1
This commit is contained in:
+1
-1
@@ -124,7 +124,7 @@ public class PatternEditorContextMembersProvider extends NonCodeMembersContribut
|
||||
}
|
||||
|
||||
private static List<PsiElement> getRootsByClassNames(PsiFile file, String type) {
|
||||
final ArrayList<PsiElement> roots = new ArrayList<PsiElement>(1);
|
||||
final List<PsiElement> roots = ContainerUtil.createEmptyCOWList();
|
||||
|
||||
final Project project = file.getProject();
|
||||
final JavaPsiFacade psiFacade = JavaPsiFacade.getInstance(project);
|
||||
|
||||
Reference in New Issue
Block a user