mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
Bug 531076 - NPE in CSearchQuery.createMatchesFromNames()
Change-Id: I6614b6557c1a9152e1d8b336d1fcfdf359201fb7
This commit is contained in:
parent
99e842bc6e
commit
337ba422b6
1 changed files with 3 additions and 0 deletions
|
@ -234,6 +234,9 @@ public abstract class CSearchQuery implements ISearchQuery {
|
|||
if (!filterName(name)) {
|
||||
if (!isPolymorphicOnly || name.couldBePolymorphicMethodCall()) {
|
||||
IASTFileLocation loc = name.getFileLocation();
|
||||
if (loc == null) {
|
||||
continue;
|
||||
}
|
||||
IIndexFile file = name.getFile();
|
||||
Set<Match> matches = fileMatches.get(file);
|
||||
if (matches == null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue