EA-68122 - NPE: InspectionToolsConfigurable.getPreferredFocusedComponent

This commit is contained in:
Sergey Malenkov
2015-07-20 22:13:44 +03:00
parent eaa5d2a80b
commit d2c69b1e16
@@ -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();
}