diff --git a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/CreateFromUsageUtils.java b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/CreateFromUsageUtils.java index 02113f04207e..818523ad74bd 100644 --- a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/CreateFromUsageUtils.java +++ b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/CreateFromUsageUtils.java @@ -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)}; }