mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-40188 - AIOOBE: IntroduceVariableBase.createArrayCreationExpression
This commit is contained in:
+1
-1
@@ -440,7 +440,7 @@ public abstract class IntroduceVariableBase extends IntroduceHandlerBase {
|
||||
args, PsiSubstitutor.EMPTY, parent,
|
||||
DefaultParameterTypeInferencePolicy.INSTANCE);
|
||||
|
||||
if (startOffset < args[parameters.length - 1].getTextRange().getStartOffset()) return null;
|
||||
if (args.length < parameters.length || startOffset < args[parameters.length - 1].getTextRange().getStartOffset()) return null;
|
||||
|
||||
final PsiFile containingFile = parent.getContainingFile();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user