Change assertion to writeExternal exception (logged, no UI dialog)

This commit is contained in:
Rustam Vishnyakov
2014-10-17 14:19:56 +04:00
parent 0d8f57d436
commit 296245fe5a
@@ -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);
}