mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
EA-33623 - AIOOBE: ExpectedTypesProvider$MyParentVisitor.visitPolyadicExpression
This commit is contained in:
@@ -590,7 +590,7 @@ public class ExpectedTypesProvider {
|
||||
}
|
||||
return;
|
||||
}
|
||||
PsiExpression anotherExpr = index > 0 ? operands[0] : operands[1];
|
||||
PsiExpression anotherExpr = index > 0 ? operands[0] : index < operands.length ? operands[1] : null;
|
||||
PsiType anotherType = anotherExpr != null ? anotherExpr.getType() : null;
|
||||
IElementType i = expr.getOperationTokenType();
|
||||
if (i == JavaTokenType.MINUS ||
|
||||
|
||||
Reference in New Issue
Block a user