1
0
Fork 0
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:
Ivan Ivanoff 2013-01-08 09:24:14 -05:00 committed by Andrew Gvozdev
parent f0e663e7cf
commit fcd0216d66

View file

@ -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);
}
} }
} }