mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-13 19:25:38 +02:00
Bug 508254 - Do not assume every field has an initializer
Change-Id: I9d6a3ba13606c8bb514598906e42cc0cc4d4d2c5
This commit is contained in:
parent
db9dea4408
commit
688b358746
1 changed files with 2 additions and 0 deletions
|
@ -158,6 +158,8 @@ public final class CompositeValue implements IValue {
|
||||||
ICPPEvaluation[] values = new ICPPEvaluation[fields.length];
|
ICPPEvaluation[] values = new ICPPEvaluation[fields.length];
|
||||||
ICPPEvaluation[] clauses = initList.getClauses();
|
ICPPEvaluation[] clauses = initList.getClauses();
|
||||||
for (int i = 0; i < fields.length; i++) {
|
for (int i = 0; i < fields.length; i++) {
|
||||||
|
if (i == clauses.length)
|
||||||
|
break;
|
||||||
IField field = fields[i];
|
IField field = fields[i];
|
||||||
ICPPEvaluation eval = clauses[i];
|
ICPPEvaluation eval = clauses[i];
|
||||||
IType fieldType = field.getType();
|
IType fieldType = field.getType();
|
||||||
|
|
Loading…
Add table
Reference in a new issue