From a74a8c78ecefe075bbbd70faea6bd85be237f54c Mon Sep 17 00:00:00 2001 From: anna Date: Thu, 7 Apr 2011 17:15:28 +0200 Subject: [PATCH] EA-26756 - NPE: ExtractMethodDialog.getSignature --- .../intellij/refactoring/extractMethod/ExtractMethodDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/java-impl/src/com/intellij/refactoring/extractMethod/ExtractMethodDialog.java b/java/java-impl/src/com/intellij/refactoring/extractMethod/ExtractMethodDialog.java index a935d6046c5a..6e5041b7701d 100644 --- a/java/java-impl/src/com/intellij/refactoring/extractMethod/ExtractMethodDialog.java +++ b/java/java-impl/src/com/intellij/refactoring/extractMethod/ExtractMethodDialog.java @@ -398,7 +398,7 @@ public class ExtractMethodDialog extends AbstractExtractDialog { //String typeAndModifiers = PsiFormatUtil.formatVariable(data.variable, // PsiFormatUtil.SHOW_MODIFIERS | PsiFormatUtil.SHOW_TYPE); PsiType type = data.type; - if (i == datas.length - 1 && type instanceof PsiArrayType && myCbMakeVarargs.isSelected()) { + if (i == datas.length - 1 && type instanceof PsiArrayType && myCbMakeVarargs != null && myCbMakeVarargs.isSelected()) { type = new PsiEllipsisType(((PsiArrayType)type).getComponentType()); }