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

Bug #200710 : Additional check for null values.

This commit is contained in:
Oleg Krasilnikov 2007-08-28 09:58:34 +00:00
parent c6c6199a06
commit 8bcd679163

View file

@ -359,9 +359,9 @@ public class CDTConfigWizardPage extends WizardPage {
Set y = new TreeSet();
for (int i=0; i<n; i++) {
x.add(tcs[i]);
if (ptIsNull && tcs[i] != null && tcs[i].getParent() != null) {
try { // Any element may be null. Do nothing in this case.
y.add(tcs[i].getParent().getProjectType().getId());
}
} catch (NullPointerException e) {}
}
MBSCustomPageManager.addPageProperty(MBSCustomPageManager.PAGE_ID, MBSCustomPageManager.TOOLCHAIN, x);
if (ptIsNull) {