mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-107491 - NPE: ColorAndFontOptions.a (it was MTFileColorsPage)
This commit is contained in:
+8
-2
@@ -614,13 +614,19 @@ public class ColorAndFontOptions extends SearchableConfigurable.Parent.Abstract
|
||||
descriptions.add(d);
|
||||
}
|
||||
for (AttributesDescriptor descriptor : attributeDescriptors) {
|
||||
LOG.assertTrue(descriptor != null, className);
|
||||
if (descriptor == null) {
|
||||
LOG.warn("Null attribute descriptor in " + className);
|
||||
continue;
|
||||
}
|
||||
SchemeTextAttributesDescription d = new SchemeTextAttributesDescription(
|
||||
descriptor.getDisplayName(), group, descriptor.getKey(), scheme, null, null);
|
||||
descriptions.add(d);
|
||||
}
|
||||
for (ColorDescriptor descriptor : provider.getColorDescriptors()) {
|
||||
LOG.assertTrue(descriptor != null, className);
|
||||
if (descriptor == null) {
|
||||
LOG.warn("Null color descriptor in " + className);
|
||||
continue;
|
||||
}
|
||||
EditorSettingColorDescription d = new EditorSettingColorDescription(
|
||||
descriptor.getDisplayName(), group, descriptor.getKey(), descriptor.getKind(), scheme);
|
||||
descriptions.add(d);
|
||||
|
||||
Reference in New Issue
Block a user