mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
fix bug 104214 - NPE in lookupInScope
This commit is contained in:
parent
edcbccd7c6
commit
e987eaedda
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ public class CPPNamespace implements ICPPNamespace, ICPPInternalBinding {
|
||||||
public CPPNamespace( ICPPASTNamespaceDefinition nsDef ){
|
public CPPNamespace( ICPPASTNamespaceDefinition nsDef ){
|
||||||
findAllDefinitions( nsDef );
|
findAllDefinitions( nsDef );
|
||||||
if( namespaceDefinitions.length == 0 ){
|
if( namespaceDefinitions.length == 0 ){
|
||||||
namespaceDefinitions = (IASTName[]) ArrayUtil.append( IASTName.class, namespaceDefinitions, nsDef.getName() );
|
namespaceDefinitions = new IASTName[] { nsDef.getName() };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue