check nullability

This commit is contained in:
Dmitry Batkovich
2015-08-28 16:08:52 +03:00
parent 6b1e14b998
commit 839a37c325
@@ -202,6 +202,9 @@ class PseudoLambdaReplaceTemplate {
for (int i = 0; i < arguments.length; i++) {
PsiType type = arguments[i];
if (type == null) {
return null;
}
if (isFunction(type, methodReturnType, methodSubstitutor, context)) {
if (lambdaPosition == -1) {
lambdaPosition = i;