mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Remove NPE from ASTTypeId.getReferences()
This commit is contained in:
parent
efab1f2f3d
commit
5846544680
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
||||||
package org.eclipse.cdt.internal.core.parser.ast.complete;
|
package org.eclipse.cdt.internal.core.parser.ast.complete;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -97,7 +98,7 @@ public class ASTTypeId implements IASTTypeId
|
||||||
|
|
||||||
public List getReferences()
|
public List getReferences()
|
||||||
{
|
{
|
||||||
return references;
|
return (references == null ) ? Collections.EMPTY_LIST : references;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ITokenDuple getTokenDuple()
|
public ITokenDuple getTokenDuple()
|
||||||
|
|
Loading…
Add table
Reference in a new issue