mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 18:05:33 +02:00
Patch for Bryan 178222 addressing NPEs while indexing Firefox.
This commit is contained in:
parent
f56c912aeb
commit
777bb96452
3 changed files with 8 additions and 4 deletions
|
@ -110,7 +110,8 @@ class PDOMCPPClassTemplatePartialSpecialization extends
|
|||
public void addArgument(IType type) throws CoreException {
|
||||
PDOMNodeLinkedList list = new PDOMNodeLinkedList(pdom, record + ARGUMENTS, getLinkageImpl());
|
||||
PDOMNode typeNode = getLinkageImpl().addType(this, type);
|
||||
list.addMember(typeNode);
|
||||
if (typeNode != null)
|
||||
list.addMember(typeNode);
|
||||
}
|
||||
|
||||
private static class TemplateArgumentCollector implements IPDOMVisitor {
|
||||
|
|
|
@ -47,7 +47,8 @@ abstract class PDOMCPPInstance extends PDOMCPPSpecialization implements
|
|||
IType[] args = inst.getArguments();
|
||||
for (int i = 0; i < args.length; i++) {
|
||||
PDOMNode typeNode = getLinkageImpl().addType(this, args[i]);
|
||||
list.addMember(typeNode);
|
||||
if (typeNode != null)
|
||||
list.addMember(typeNode);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -56,9 +56,11 @@ abstract class PDOMCPPSpecialization extends PDOMCPPBinding implements
|
|||
if (argMap != null) {
|
||||
for (int i = 0; i < argMap.size(); i++) {
|
||||
PDOMNode paramNode = getLinkageImpl().addType(this, (IType) argMap.keyAt(i));
|
||||
paramList.addMember(paramNode);
|
||||
PDOMNode argNode = getLinkageImpl().addType(this, (IType) argMap.getAt(i));
|
||||
argList.addMember(argNode);
|
||||
if (paramNode != null && argNode != null) {
|
||||
paramList.addMember(paramNode);
|
||||
argList.addMember(argNode);
|
||||
}
|
||||
}
|
||||
}
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue