getValues();\r
Composite composite = new Composite(parent, SWT.NULL);\r
composite.setLayout(new GridLayout());\r
- if (!isAdminPreference && distributionEditorPref != null && !distributionEditorPref.isAllowOverride()&& !isEditorActivated ) {\r
+ if (!isAdminPreference && distributionEditorPref != null && !distributionEditorPref.isAllowOverride()&& isEditorActivated != null && !isEditorActivated ) {\r
Label label = new Label(composite, SWT.NONE);\r
label.setText(\r
"The CDM settings don't allow to set the preferences for using the distribution editor locally. If you need to make local settings, please ask an administrator.");\r
if (isEditorActivated != null){\r
child.setEnabled(isEditorActivated);\r
}else{\r
- child.setEnabled(Boolean.parseBoolean(distributionEditorPref.getValue().toString()));\r
+ child.setEnabled(distributionEditorPref.getValue() != null?Boolean.parseBoolean(distributionEditorPref.getValue().toString()): true);\r
}\r
}\r
separator = new Label(child, SWT.HORIZONTAL | SWT.SEPARATOR);\r
String text = activateCombo.getText();\r
if(text.startsWith(Messages.Preference_Use_Default)){\r
isEditorActivated = null;\r
+\r
return;\r
}\r
\r