mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 21:55:01 +07:00
AIOOBE
(cherry picked from commit a7dd44bbbd2f36928f5b414e0a14050c4fcdb5c6)
This commit is contained in:
+1
-1
@@ -128,7 +128,7 @@ public class StaticImportMethodFix implements IntentionAction {
|
||||
final PsiMethod psiMethod = (PsiMethod)psiElement;
|
||||
final PsiParameter[] parameters = psiMethod.getParameterList().getParameters();
|
||||
final int idx = ArrayUtilRt.find(((PsiExpressionList)parent).getExpressions(), PsiResolveHelperImpl.skipParenthesizedExprUp(methodCall));
|
||||
if (idx > -1) {
|
||||
if (idx > -1 && parameters.length > 0) {
|
||||
PsiType parameterType = parameters[Math.min(idx, parameters.length - 1)].getType();
|
||||
if (idx >= parameters.length - 1) {
|
||||
final PsiParameter lastParameter = parameters[parameters.length - 1];
|
||||
|
||||
Reference in New Issue
Block a user