inspection settings: do not access disposed ui in callback (EA-121188 EA-121431 EA-121726)

This commit is contained in:
Dmitry Batkovich
2018-06-04 17:10:35 +03:00
parent 707c046e96
commit c63eec5732
@@ -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();