inspection tool window: key id -> short-name NPE fixed IDEA-155872

This commit is contained in:
Dmitry Batkovich
2016-05-19 17:19:19 +03:00
parent 0d4224d070
commit bce6f8da26
@@ -92,11 +92,12 @@ public class InspectionNodeInfo extends JPanel {
@Override
public boolean onClick(@NotNull MouseEvent event, int clickCount) {
DisableInspectionToolAction.modifyAndCommitProjectProfile(model -> {
final String toolId = key.toString();
if (enabled) {
model.disableTool(key.getID(), project);
model.disableTool(toolId, project);
}
else {
((InspectionProfileImpl)model).enableTool(key.getID(), project);
((InspectionProfileImpl)model).enableTool(toolId, project);
}
}, project);
return true;