Inspections settings ui: NPE fixed (on pressing "OK" with unsaved changes)

This commit is contained in:
Dmitry Batkovich
2014-07-23 14:26:49 +04:00
parent 8ce7f4e0eb
commit ccbbc8d114
@@ -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];