mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
check tuple component type for null (EA-26251)
This commit is contained in:
@@ -48,9 +48,11 @@ public class GppTypeConverter extends GrTypeConverter {
|
||||
|
||||
final PsiType expectedComponent = PsiUtil.extractIterableTypeParameter(lType, false);
|
||||
if (expectedComponent != null &&
|
||||
isMethodCallConversion(context) && TypesUtil.isAssignable(expectedComponent, tupleType.getParameters()[0], context) &&
|
||||
hasDefaultConstructor(lType)) {
|
||||
return true;
|
||||
isMethodCallConversion(context)) {
|
||||
PsiType tupleComponent = tupleType.getParameters()[0];
|
||||
if (tupleComponent != null && TypesUtil.isAssignable(expectedComponent, tupleComponent, context) && hasDefaultConstructor(lType)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (lType instanceof PsiClassType && hasTypedContext(context)) {
|
||||
|
||||
Reference in New Issue
Block a user