1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00

Bug #175722: NPE in ToolSettingsPrefStore

This commit is contained in:
Oleg Krasilnikov 2007-02-28 10:16:43 +00:00
parent 871c565145
commit ad84cc5f82

View file

@ -209,7 +209,8 @@ public class ToolSettingsPrefStore implements IPreferenceStore {
IOption option = (IOption)options[i][1];
if(option.getName().equals(name) //TODO: name vs ID !
String optionName = option.getName();
if( ((optionName != null) && optionName.equals(name)) //TODO: name vs ID !
|| ((!option.isExtensionElement() || ((Option)option).isAdjustedExtension() || ((Option)option).wasOptRef())
&& option.getSuperClass() != null
&& option.getSuperClass().getId().equals(name)))