From bce6f8da2656bacb11ce167e820791d173fba87e Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Thu, 19 May 2016 17:18:22 +0300 Subject: [PATCH] inspection tool window: key id -> short-name NPE fixed IDEA-155872 --- .../com/intellij/codeInspection/ui/InspectionNodeInfo.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionNodeInfo.java b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionNodeInfo.java index a41af148ea81..838d30aed099 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionNodeInfo.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionNodeInfo.java @@ -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;