EA-33623 - AIOOBE: ExpectedTypesProvider$MyParentVisitor.visitPolyadicExpression

This commit is contained in:
peter
2012-02-10 15:03:52 +01:00
parent fbf99fd29b
commit a58a8ec637
@@ -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 ||