From ccbbc8d114eecba319fa0df32009d8de473d911f Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Wed, 23 Jul 2014 14:26:49 +0400 Subject: [PATCH] Inspections settings ui: NPE fixed (on pressing "OK" with unsaved changes) --- .../profile/codeInspection/ui/SingleInspectionProfilePanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ce5f308c1305..bd99a1552c07 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 @@ -684,7 +684,7 @@ public class SingleInspectionProfilePanel extends JPanel { } private void updateOptionsAndDescriptionPanel(final TreePath... paths) { - if (paths == null || paths.length == 0) { + if (mySelectedProfile == null || paths == null || paths.length == 0) { return; } final TreePath path = paths[0];