mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 18:56:02 +02:00
Bug #200710 : Additional check for null values.
This commit is contained in:
parent
c6c6199a06
commit
8bcd679163
1 changed files with 2 additions and 2 deletions
|
@ -359,9 +359,9 @@ public class CDTConfigWizardPage extends WizardPage {
|
||||||
Set y = new TreeSet();
|
Set y = new TreeSet();
|
||||||
for (int i=0; i<n; i++) {
|
for (int i=0; i<n; i++) {
|
||||||
x.add(tcs[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());
|
y.add(tcs[i].getParent().getProjectType().getId());
|
||||||
}
|
} catch (NullPointerException e) {}
|
||||||
}
|
}
|
||||||
MBSCustomPageManager.addPageProperty(MBSCustomPageManager.PAGE_ID, MBSCustomPageManager.TOOLCHAIN, x);
|
MBSCustomPageManager.addPageProperty(MBSCustomPageManager.PAGE_ID, MBSCustomPageManager.TOOLCHAIN, x);
|
||||||
if (ptIsNull) {
|
if (ptIsNull) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue