mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE
This commit is contained in:
+1
@@ -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)};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user