EA-31355 - NPE: EvaluatorBuilderImpl$Builder.createBinaryEvaluator

This commit is contained in:
Alexey Kudravtsev
2011-12-02 13:54:53 +04:00
parent 9f80a013ab
commit 7cfdb687f4
@@ -394,7 +394,7 @@ public class EvaluatorBuilderImpl implements EvaluatorBuilder {
}
}
return new BinaryExpressionEvaluator(lResult, rResult, operation, expressionExpectedType.getCanonicalText());
return new BinaryExpressionEvaluator(lResult, rResult, operation, expressionExpectedType == null ? null : expressionExpectedType.getCanonicalText());
}
private static boolean isBinaryNumericPromotionApplicable(PsiType lType, PsiType rType, IElementType opType) {