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:
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();
|
||||
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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue