mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix IAE
This commit is contained in:
@@ -183,7 +183,7 @@ public class JavaPsiFacadeImpl extends JavaPsiFacadeEx implements Disposable {
|
||||
}
|
||||
|
||||
final List<PsiClass> classes = filterByName(className, pkg.getClasses(scope));
|
||||
return classes.isEmpty() ? null : Arrays.asList(classes.get(0));
|
||||
return classes.isEmpty() ? classes : Arrays.asList(classes.get(0));
|
||||
}
|
||||
|
||||
private static List<PsiClass> filterByName(String className, PsiClass[] classes) {
|
||||
|
||||
Reference in New Issue
Block a user