mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 17:55:39 +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)) {
|
} else if (!(name instanceof IIndexName)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tu == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
IndexNameToAstNameMatcher visitor = new IndexNameToAstNameMatcher(tu, (IIndexName) name, index);
|
IndexNameToAstNameMatcher visitor = new IndexNameToAstNameMatcher(tu, (IIndexName) name, index);
|
||||||
tu.accept(visitor);
|
tu.accept(visitor);
|
||||||
|
|
Loading…
Add table
Reference in a new issue