mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Change assertion to writeExternal exception (logged, no UI dialog)
This commit is contained in:
@@ -597,7 +597,9 @@ public class CodeStyleSettings extends CommonCodeStyleSettings implements Clonea
|
||||
|
||||
for (final CustomCodeStyleSettings settings : customSettings) {
|
||||
final CustomCodeStyleSettings parentCustomSettings = parentSettings.getCustomSettings(settings.getClass());
|
||||
assert parentCustomSettings != null : "Custom settings are null for " + settings.getClass();
|
||||
if (parentCustomSettings == null) {
|
||||
throw new WriteExternalException("Custom settings are null for " + settings.getClass());
|
||||
}
|
||||
settings.writeExternal(element, parentCustomSettings);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user