summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Ivanoff2013-01-08 09:24:14 (EST)
committer Andrew Gvozdev2013-01-08 09:24:14 (EST)
commitfcd0216d66a632343ea9f9521b963bb2773bfc33 (patch)
treeb392b76a7af66ff9316415d337883e440295f434
parentf0e663e7cffc90d6828be98ae5e397b59d14bd12 (diff)
downloadorg.eclipse.cdt-fcd0216d66a632343ea9f9521b963bb2773bfc33.zip
org.eclipse.cdt-fcd0216d66a632343ea9f9521b963bb2773bfc33.tar.gz
org.eclipse.cdt-fcd0216d66a632343ea9f9521b963bb2773bfc33.tar.bz2
bug 397546: NPE at org.eclipse.cdt.internal.ui.language.settings.providers.LanguageSettingsProviderTab.updateData(LanguageSettingsProviderTab.java:1084)
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/language/settings/providers/LanguageSettingsProviderTab.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/language/settings/providers/LanguageSettingsProviderTab.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/language/settings/providers/LanguageSettingsProviderTab.java
index d858baa..bced35b 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/language/settings/providers/LanguageSettingsProviderTab.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/language/settings/providers/LanguageSettingsProviderTab.java
@@ -1081,11 +1081,13 @@ public class LanguageSettingsProviderTab extends AbstractCPropertyTab {
return;
ICConfigurationDescription cfgDescription = getConfigurationDescription();
- String cfgId = cfgDescription.getId();
- if (!initialProvidersByCfg.containsKey(cfgId)) {
- if (cfgDescription instanceof ILanguageSettingsProvidersKeeper) {
- List<ILanguageSettingsProvider> initialProviders = ((ILanguageSettingsProvidersKeeper) cfgDescription).getLanguageSettingProviders();
- initialProvidersByCfg.put(cfgId, initialProviders);
+ if (cfgDescription != null) {
+ String cfgId = cfgDescription.getId();
+ if (!initialProvidersByCfg.containsKey(cfgId)) {
+ if (cfgDescription instanceof ILanguageSettingsProvidersKeeper) {
+ List<ILanguageSettingsProvider> initialProviders = ((ILanguageSettingsProvidersKeeper) cfgDescription).getLanguageSettingProviders();
+ initialProvidersByCfg.put(cfgId, initialProviders);
+ }
}
}