mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 15:05:36 +02:00
Fixes a NPE.
This commit is contained in:
parent
950242a0f3
commit
588b7c399d
1 changed files with 5 additions and 3 deletions
|
@ -40,12 +40,14 @@ class PDOMCPPTypeList {
|
|||
db.putShort(p, len); p+=2;
|
||||
for (int i=0; i<len; i++, p+=NODE_SIZE) {
|
||||
final IType type = types[i];
|
||||
int rec= 0;
|
||||
if (type != null) {
|
||||
final PDOMNode pdomType = linkage.addType(parent, type);
|
||||
db.putInt(p, pdomType.getRecord());
|
||||
} else {
|
||||
db.putInt(p, 0);
|
||||
if (pdomType != null) {
|
||||
rec= pdomType.getRecord();
|
||||
}
|
||||
}
|
||||
db.putInt(p, rec);
|
||||
}
|
||||
return block;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue