mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 23:25:26 +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 (!filterName(name)) {
|
||||||
if (!isPolymorphicOnly || name.couldBePolymorphicMethodCall()) {
|
if (!isPolymorphicOnly || name.couldBePolymorphicMethodCall()) {
|
||||||
IASTFileLocation loc = name.getFileLocation();
|
IASTFileLocation loc = name.getFileLocation();
|
||||||
|
if (loc == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
IIndexFile file = name.getFile();
|
IIndexFile file = name.getFile();
|
||||||
Set<Match> matches = fileMatches.get(file);
|
Set<Match> matches = fileMatches.get(file);
|
||||||
if (matches == null) {
|
if (matches == null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue