mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
bug 397546: NPE at org.eclipse.cdt.internal.ui.language.settings.providers.LanguageSettingsProviderTab.updateData(LanguageSettingsProviderTab.java:1084)
This commit is contained in:
parent
f0e663e7cf
commit
fcd0216d66
1 changed files with 7 additions and 5 deletions
|
@ -1081,11 +1081,13 @@ public class LanguageSettingsProviderTab extends AbstractCPropertyTab {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ICConfigurationDescription cfgDescription = getConfigurationDescription();
|
ICConfigurationDescription cfgDescription = getConfigurationDescription();
|
||||||
String cfgId = cfgDescription.getId();
|
if (cfgDescription != null) {
|
||||||
if (!initialProvidersByCfg.containsKey(cfgId)) {
|
String cfgId = cfgDescription.getId();
|
||||||
if (cfgDescription instanceof ILanguageSettingsProvidersKeeper) {
|
if (!initialProvidersByCfg.containsKey(cfgId)) {
|
||||||
List<ILanguageSettingsProvider> initialProviders = ((ILanguageSettingsProvidersKeeper) cfgDescription).getLanguageSettingProviders();
|
if (cfgDescription instanceof ILanguageSettingsProvidersKeeper) {
|
||||||
initialProvidersByCfg.put(cfgId, initialProviders);
|
List<ILanguageSettingsProvider> initialProviders = ((ILanguageSettingsProvidersKeeper) cfgDescription).getLanguageSettingProviders();
|
||||||
|
initialProvidersByCfg.put(cfgId, initialProviders);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue