mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user