mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
Fix an NPE in PDOMCPPNamespaceAlias when the namespace is not found.
This commit is contained in:
parent
6c3076579d
commit
aa41a5b6c7
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@ class PDOMCPPNamespaceAlias extends PDOMCPPBinding implements
|
|||
throws CoreException {
|
||||
super(pdom, parent, alias.getNameCharArray());
|
||||
PDOMBinding namespace = getLinkageImpl().adaptBinding(alias.getBinding());
|
||||
pdom.getDB().putInt(record + NAMESPACE_BINDING, namespace.getRecord());
|
||||
pdom.getDB().putInt(record + NAMESPACE_BINDING,
|
||||
namespace != null ? namespace.getRecord() : 0);
|
||||
}
|
||||
|
||||
public PDOMCPPNamespaceAlias(PDOM pdom, int record) {
|
||||
|
|
Loading…
Add table
Reference in a new issue