EA-41550 - PIEAE: CompositePsiElement.getProject

(cherry picked from commit ff668adf891283edfe677a0a1d85182570b4f5b5)
This commit is contained in:
anna
2012-11-30 16:54:24 +01:00
parent 5336abf404
commit b10b6fd64d
@@ -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();