1
0
Fork 0
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:
Nathan Ridge 2018-11-15 21:42:00 -05:00
parent d79977e17e
commit 240f017407

View file

@ -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);