From fa270af1e7850be5ffda7046e503766b1d63c000 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Thu, 23 Aug 2012 17:52:15 +0400 Subject: [PATCH] NPE --- .../impl/quickfix/CreateConstructorMatchingSuperFix.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/CreateConstructorMatchingSuperFix.java b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/CreateConstructorMatchingSuperFix.java index 1e6762f9a63d..32e6750b5e22 100644 --- a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/CreateConstructorMatchingSuperFix.java +++ b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/CreateConstructorMatchingSuperFix.java @@ -132,7 +132,9 @@ public class CreateConstructorMatchingSuperFix extends BaseIntentionAction { } } - derived.setName(targetClass.getName()); + final String targetClassName = targetClass.getName(); + LOG.assertTrue(targetClassName != null, targetClass); + derived.setName(targetClassName); ConstructorBodyGenerator generator = ConstructorBodyGenerator.INSTANCE.forLanguage(derived.getLanguage()); if (generator != null) {