From c63eec573240289b209fc07da6c9c2e491ca6e50 Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Mon, 4 Jun 2018 12:55:47 +0300 Subject: [PATCH] inspection settings: do not access disposed ui in callback (EA-121188 EA-121431 EA-121726) --- .../profile/codeInspection/ui/SingleInspectionProfilePanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/SingleInspectionProfilePanel.java b/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/SingleInspectionProfilePanel.java index 94d82e817349..d3302583d2d5 100644 --- a/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/SingleInspectionProfilePanel.java +++ b/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/SingleInspectionProfilePanel.java @@ -1212,7 +1212,7 @@ public class SingleInspectionProfilePanel extends JPanel { } private void setupResetLinkVisibility() { - if (myTreeTable == null) return; + if (myTreeTable == null || myProfile == null) return; InspectionConfigTreeNode.Tool node = myTreeTable.getStrictlySelectedToolNode(); if (node != null) { ScopeToolState state = getSelectedState();