Minor: Add proper nullability check in generateExtensionReceiver()

This commit is contained in:
Yan Zhulanow
2019-01-16 18:04:19 +03:00
parent d039e3b1c0
commit eaed6855ac
@@ -2783,7 +2783,12 @@ public class ExpressionCodegen extends KtVisitor<StackValue, StackValue> impleme
);
}
return context.generateReceiver(descriptor, state, false);
StackValue result = context.generateReceiver(descriptor, state, false);
if (result == null) {
throw new NullPointerException("Extension receiver was null for callable " + descriptor);
}
return result;
}
@NotNull