From 446e387ced863dd9ac0dfd5d21d2528ac2179cf0 Mon Sep 17 00:00:00 2001 From: "Anna.Kozlova" Date: Wed, 23 Mar 2016 18:52:49 +0100 Subject: [PATCH] check if editor was already disposed EA-77418 - TDDE: TraceableDisposable.throwDisposalError --- .../intellij/codeInsight/hint/ImplementationViewComponent.java | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/hint/ImplementationViewComponent.java b/platform/lang-impl/src/com/intellij/codeInsight/hint/ImplementationViewComponent.java index 0a8a4aae9a2a..ee459ab948ff 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/hint/ImplementationViewComponent.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/hint/ImplementationViewComponent.java @@ -271,6 +271,7 @@ public class ImplementationViewComponent extends JPanel { update(elements, new PairFunction, Boolean>() { @Override public Boolean fun(PsiElement[] psiElements, List fileDescriptors) { + if (myEditor.isDisposed()) return false; if (psiElements.length == 0) return false; final Project project = psiElements[0].getProject();