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:
parent
871c565145
commit
ad84cc5f82
1 changed files with 2 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue