From ab20a93bc9a7c3f1728ab3e4b934c47a8f07c737 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Thu, 30 Aug 2012 15:16:43 +0400 Subject: [PATCH] NPE --- .../codeInsight/daemon/impl/quickfix/CreateFromUsageUtils.java | 1 + 1 file changed, 1 insertion(+) 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)}; }