1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Checks for null-pointers by Paul Warren, bug 209676.

This commit is contained in:
Markus Schorn 2007-11-23 08:44:40 +00:00
parent 9b07ea66db
commit bac56fad6d
2 changed files with 16 additions and 12 deletions

View file

@ -2527,6 +2527,7 @@ public class PathEntryTranslator {
public boolean visit(PathSettingsContainer container) {
CResourceData data = (CResourceData)container.getValue();
if (data != null) {
PathEntryCollector child = cr.createChild(container.getPath());
for(int i = 0; i < kinds.length; i++){
List list = new ArrayList();
@ -2535,6 +2536,7 @@ public class PathEntryTranslator {
child.setEntries(kinds[i], entries, exportedSettings);
}
}
}
return true;
}

View file

@ -215,6 +215,7 @@ public class IndexFactory {
if(pd!=null) {
IndexProviderManager ipm = CCoreInternals.getPDOMManager().getIndexProviderManager();
ICConfigurationDescription cfg= pd.getDefaultSettingConfiguration();
if (cfg != null) {
try {
IIndexFragment[] pFragments= ipm.getProvidedIndexFragments(cfg);
for(int i=0; i<pFragments.length; i++) {
@ -226,3 +227,4 @@ public class IndexFactory {
}
}
}
}