This commit is contained in:
Alexey Kudravtsev
2012-08-31 11:51:16 +04:00
parent cfb9b6eb48
commit ab20a93bc9
@@ -610,6 +610,7 @@ public class CreateFromUsageUtils {
if (type instanceof PsiPrimitiveType) {
type = ((PsiPrimitiveType)type).getBoxedType(methodCall);
}
if (type == null) return ExpectedTypeInfo.EMPTY_ARRAY;
return new ExpectedTypeInfo[]{ExpectedTypesProvider.createInfo(type, ExpectedTypeInfo.TYPE_STRICTLY, type, TailType.NONE)};
}