From 263495d3dd93cc5b61ce5054816ce06a1d9b080c Mon Sep 17 00:00:00 2001 From: anna Date: Tue, 15 Jan 2013 15:16:03 +0100 Subject: [PATCH] EA-42870 - assert: CreateConstructorFromThisOrSuperFix.isAvailableImpl --- .../impl/quickfix/CreateConstructorFromThisOrSuperFix.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/CreateConstructorFromThisOrSuperFix.java b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/CreateConstructorFromThisOrSuperFix.java index 0c744c95890b..09fcdeb447e4 100644 --- a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/CreateConstructorFromThisOrSuperFix.java +++ b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/CreateConstructorFromThisOrSuperFix.java @@ -64,7 +64,7 @@ public abstract class CreateConstructorFromThisOrSuperFix extends CreateFromUsag if (method == null || !method.isConstructor()) return false; if (CreateMethodFromUsageFix.hasErrorsInArgumentList(myMethodCall)) return false; List targetClasses = getTargetClasses(myMethodCall); - LOG.assertTrue(targetClasses.size() == 1); + if (targetClasses.isEmpty()) return false; if (CreateFromUsageUtils.shouldShowTag(offset, ref.getReferenceNameElement(), myMethodCall)) { setText(QuickFixBundle.message("create.constructor.text", targetClasses.get(0).getName()));