mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Bug 541116 - NPE in IndexToASTNameHelper.findMatchingASTName
Change-Id: I6440dd072841cfc7d9e8240024f7dee527954b57
This commit is contained in:
parent
d79977e17e
commit
240f017407
1 changed files with 4 additions and 0 deletions
|
@ -42,6 +42,10 @@ public class IndexToASTNameHelper {
|
|||
} else if (!(name instanceof IIndexName)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (tu == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
IndexNameToAstNameMatcher visitor = new IndexNameToAstNameMatcher(tu, (IIndexName) name, index);
|
||||
tu.accept(visitor);
|
||||
|
|
Loading…
Add table
Reference in a new issue