From d2c69b1e16d911aefbda3255f80a78a02574ec18 Mon Sep 17 00:00:00 2001 From: Sergey Malenkov Date: Mon, 20 Jul 2015 22:09:53 +0300 Subject: [PATCH] EA-68122 - NPE: InspectionToolsConfigurable.getPreferredFocusedComponent --- .../codeInspection/ui/header/InspectionToolsConfigurable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/header/InspectionToolsConfigurable.java b/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/header/InspectionToolsConfigurable.java index d59cd1a1fda8..da658ced7c2a 100644 --- a/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/header/InspectionToolsConfigurable.java +++ b/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/header/InspectionToolsConfigurable.java @@ -668,7 +668,7 @@ public abstract class InspectionToolsConfigurable extends BaseConfigurable @Override public JComponent getPreferredFocusedComponent() { - final InspectionProfileImpl inspectionProfile = getSelectedObject(); + final InspectionProfileImpl inspectionProfile = myProfiles.getSelectedProfile(); SingleInspectionProfilePanel panel = getProfilePanel(inspectionProfile); return panel == null ? null : panel.getPreferredFocusedComponent(); }