This commit is contained in:
Denis Zhdanov
2011-04-14 17:47:05 +04:00
parent 55e68390e6
commit a9d5de9e7a
@@ -218,8 +218,12 @@ public class GeneralCodeStylePanel extends CodeStyleAbstractPanel {
for(Map.Entry<FileType, IndentOptionsEditor> entry : myAdditionalIndentOptions.entrySet()) {
FileType fileType = entry.getKey();
CodeStyleSettings.IndentOptions additionalIndentOptions = settings.getAdditionalIndentOptions(fileType);
if (additionalIndentOptions == null) {
continue;
}
IndentOptionsEditor editor = entry.getValue();
editor.apply(settings, settings.getAdditionalIndentOptions(fileType));
editor.apply(settings, additionalIndentOptions);
}
}