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();