From b10b6fd64df15f93097154ae0d684fd078e6ec7a Mon Sep 17 00:00:00 2001 From: anna Date: Fri, 30 Nov 2012 13:40:46 +0100 Subject: [PATCH] EA-41550 - PIEAE: CompositePsiElement.getProject (cherry picked from commit ff668adf891283edfe677a0a1d85182570b4f5b5) --- .../refactoring/typeMigration/TypeMigrationLabeler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/java-impl/src/com/intellij/refactoring/typeMigration/TypeMigrationLabeler.java b/java/java-impl/src/com/intellij/refactoring/typeMigration/TypeMigrationLabeler.java index 0dcb61f2251d..d4fe594814c9 100644 --- a/java/java-impl/src/com/intellij/refactoring/typeMigration/TypeMigrationLabeler.java +++ b/java/java-impl/src/com/intellij/refactoring/typeMigration/TypeMigrationLabeler.java @@ -116,7 +116,7 @@ public class TypeMigrationLabeler { usages.add(new UsageInfo(expr) { @Nullable public String getTooltipText() { - final PsiType type = expr.getType(); + final PsiType type = expr.isValid() ? expr.getType() : null; if (type == null) return null; return "Cannot convert type of the expression from " + type.getCanonicalText() + " to " + p.getSecond().getCanonicalText();