From 9ddded39b9a200e8c12fff3ab2a7246d057c7317 Mon Sep 17 00:00:00 2001 From: anna Date: Tue, 22 Dec 2009 22:21:15 +0300 Subject: [PATCH] NPE --- .../intellij/application/options/CodeStyleSchemesConfigurable.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/application/options/CodeStyleSchemesConfigurable.java b/platform/lang-impl/src/com/intellij/application/options/CodeStyleSchemesConfigurable.java index 9b26c0aa8c..726bf37df6 100644 --- a/platform/lang-impl/src/com/intellij/application/options/CodeStyleSchemesConfigurable.java +++ b/platform/lang-impl/src/com/intellij/application/options/CodeStyleSchemesConfigurable.java @@ -146,8 +146,10 @@ public class CodeStyleSchemesConfigurable extends SearchableConfigurable.Parent. } private boolean isSomeSchemeModified() { - for (CodeStyleConfigurableWrapper panel : myPanels) { - if (panel.isPanelModified()) return true; + if (myPanels != null) { + for (CodeStyleConfigurableWrapper panel : myPanels) { + if (panel.isPanelModified()) return true; + } } return false; -- 2.11.4.GIT